mirror of
https://github.com/putnam/binmerge.git
synced 2025-04-19 08:28:06 +02:00
in split mode, use correct naming convention for single track discs
This commit is contained in:
parent
6e26cc41f1
commit
d5f4952010
1 changed files with 3 additions and 0 deletions
3
binmerge
3
binmerge
|
@ -177,11 +177,14 @@ def cuestamp_to_sectors(stamp):
|
|||
def track_filename(prefix, track_num, track_count):
|
||||
# Redump is strangely inconsistent in their datfiles and cuesheets when it
|
||||
# comes to track numbers. The naming convention currently seems to be:
|
||||
# If there is exactly one track: "" (nothing)
|
||||
# If there are less than 10 tracks: "Track 1", "Track 2", etc.
|
||||
# If there are more than 10 tracks: "Track 01", "Track 02", etc.
|
||||
#
|
||||
# It'd be nice if it were consistently %02d!
|
||||
#
|
||||
if track_count == 1:
|
||||
return "%s.bin"
|
||||
if track_count > 9:
|
||||
return "%s (Track %02d).bin" % (prefix, track_num)
|
||||
return "%s (Track %d).bin" % (prefix, track_num)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue