Track #'s should be forced as 2-digit values #32

Open
opened 2023-10-12 19:33:20 -04:00 by TrazhCant · 2 comments
TrazhCant commented 2023-10-12 19:33:20 -04:00 (Migrated from github.com)

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.

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.
TrazhCant commented 2023-10-12 20:28:31 -04:00 (Migrated from github.com)

Would a good potential temporary workaround be to jam the zfill() method into the config somehow?

Would a good potential temporary workaround be to jam the zfill() method into the config somehow?
BB1612 commented 2023-11-03 05:17:01 -04:00 (Migrated from github.com)

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.

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))))

> 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. 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))))
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
zotify-dev/zotify#32
No description provided.