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
17.14k stars 1.57k forks source link

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

Closed KhristianMT closed 5 months ago

KhristianMT commented 5 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 "",

Related Issue

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

Checklist