Track number filename part is zero-padded for older players

master
forsenonlhaimaisentito 2015-09-11 16:09:24 +02:00
parent 55d22a7741
commit f1a23fd185
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ class BandcampDownloader():
path = self.template
path = path.replace("%{artist}", slugify(track['artist']))
path = path.replace("%{album}", slugify(track['album']))
path = path.replace("%{track}", track['track'])
path = path.replace("%{track}", str(track['track']).zfill(2))
path = path.replace("%{title}", slugify(track['title']))
path = u"{0}/{1}.{2}".format(self.directory, path, "mp3")