oSumAtrIX / DownOnSpot

🎧 A Spotify music and playlist downloader working with free Spotify accounts written in Rust
https://osumatrix.me
GNU General Public License v3.0
555 stars 44 forks source link

Add variable that adds leading zero(s) to the track number #32

Closed varac closed 2 years ago

varac commented 2 years ago

Is your feature request related to a problem? Please describe.

I'd like to be consistent with my existing media library naming scheme. The only missing part is that DownOnSpot doesn't support leading zeros in front of the track number.

Describe the solution you'd like

I'd like DownOnSpot to provide a template variable that adds a leading zero before track numbers <10. It could either be specified with how many digits it should have (i.e. {track:00}) or add a {track_zerofied} variable that would support track numbers <100 (I can't come up with a smart name though).

varac commented 2 years ago

Oh damn, I didn't see the %0track% variable :)