spotDL / spotify-downloader

Download your Spotify playlists and songs along with album art and metadata (from YouTube if a match is found).
https://spotdl.readthedocs.io/en/latest/
MIT License
15.55k stars 1.48k forks source link

Kan 10 issue unknown format code 'd' for object of type 'float' #16 #2083

Closed KhristianMT closed 2 months ago

KhristianMT commented 2 months ago

Title Fixed an error that happens when bulk syncing an album

Description I went into the formatter.py file and changed line 235 from
"{track-number}": f"{song.track_number:02d}" if song.track_number else "" --->
"{track-number}": f"{song.track_number:02f}" if song.track_number else "",

Motivation and Context

There were users having bugs when ether bulk syncing albums or just downloading songs that would come across this bug.
Fixing this bug allowed the user to enjoy this app How Has This Been Tested? Screenshots (if appropriate)

Types of Changes