Takes format_track as name when downloading a song
This commit is contained in:
parent
3c6adeff79
commit
3e6f6626a1
@ -169,7 +169,7 @@ class Controller(object):
|
|||||||
def on_download(self, *args, **kwargs):
|
def on_download(self, *args, **kwargs):
|
||||||
item = self.results[self.window.get_item()]
|
item = self.results[self.window.get_item()]
|
||||||
log.debug("Starting requested download: {0} (using extractor: {1})".format(item.title, self.extractor.name))
|
log.debug("Starting requested download: {0} (using extractor: {1})".format(item.title, self.extractor.name))
|
||||||
f = "{0}.mp3".format(item.title)
|
f = "{0}.mp3".format(item.format_track())
|
||||||
if item.download_url == "":
|
if item.download_url == "":
|
||||||
item.get_download_url()
|
item.get_download_url()
|
||||||
path = self.window.get_destination_path(f)
|
path = self.window.get_destination_path(f)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user