[GH-ISSUE #25] feature: adding file naming formatting for songs #14

Closed
opened 2026-03-04 12:28:01 +03:00 by kerem · 3 comments
Owner

Originally created by @calvin-li-developer on GitHub (Oct 20, 2022).
Original GitHub issue: https://github.com/casualsnek/onthespot/issues/25

currently in the advance settings you can add {track_number} {name}. Is it possible to make it 0{track_number} {name} ?

example:

  • current: 4 Bad Habits

  • request: 04 Bad Habits

this should also be changed for the lrc files.

Originally created by @calvin-li-developer on GitHub (Oct 20, 2022). Original GitHub issue: https://github.com/casualsnek/onthespot/issues/25 currently in the advance settings you can add {track_number} {name}. Is it possible to make it 0{track_number} {name} ? example: - current: 4 Bad Habits - request: 04 Bad Habits this should also be changed for the lrc files.
kerem closed this issue 2026-03-04 12:28:01 +03:00
Author
Owner

@casualsnek commented on GitHub (Oct 20, 2022):

You should be able to do that with no issue, but if you use 0{track_number} it will use 010 if you go over 9th track.

<!-- gh-comment-id:1286178542 --> @casualsnek commented on GitHub (Oct 20, 2022): You should be able to do that with no issue, but if you use 0{track_number} it will use 010 if you go over 9th track.
Author
Owner

@calvin-li-developer commented on GitHub (Oct 21, 2022):

is there any to format it so that it always have 2 digit placement for songs? I understand you're method works for single digit track number but it would be great if there's option for this.

<!-- gh-comment-id:1287240406 --> @calvin-li-developer commented on GitHub (Oct 21, 2022): is there any to format it so that it always have 2 digit placement for songs? I understand you're method works for single digit track number but it would be great if there's option for this.
Author
Owner

@casualsnek commented on GitHub (Apr 7, 2023):

is there any to format it so that it always have 2 digit placement for songs? I understand you're method works for single digit track number but it would be great if there's option for this.

can you try {track_number:0>2d} and see if it works ? This should work as you expect! You can refer to python fstring formats for more !

You may close the issue if this does what you want !

<!-- gh-comment-id:1500127644 --> @casualsnek commented on GitHub (Apr 7, 2023): > is there any to format it so that it always have 2 digit placement for songs? I understand you're method works for single digit track number but it would be great if there's option for this. can you try ```{track_number:0>2d}``` and see if it works ? This should work as you expect! You can refer to python fstring formats for more ! You may close the issue if this does what you want !
Sign in to join this conversation.
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
starred/onthespot#14
No description provided.