Track #'s should be forced as 2-digit values #32
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Depending on the system used to list directory contents, having track 1 as "1" in the filename instead of "01" could cause some systems to output the directory listing with an incorrect track order. Having track 1 start with 1 might then result in the next track in the directory listing be track 10. By forcing the track numbers to always be 2 digits, then every system should display the tracks in the correct order when retrieving the directory listing as "01" "02" etc.
Hope that makes sense. I'm not aware of any albums that are 10-discs +, but maybe having disc numbers be 2 digit as well might be prudent.
Would a good potential temporary workaround be to jam the zfill() method into the config somehow?
Filename {track_number} 2 digits
track.py line 172
output_template = output_template.replace("{track_number}", fix_filename(track_number))
⇊
output_template = output_template.replace("{track_number}", '{:02d}'.format(int(fix_filename(track_number))))