Call to te appropiate download function depending in the extractor used
This commit is contained in:
parent
f7c886a0eb
commit
aa8d4dfc0c
@ -146,6 +146,9 @@ class Controller(object):
|
|||||||
item.get_download_url()
|
item.get_download_url()
|
||||||
path = self.window.get_destination_path(f)
|
path = self.window.get_destination_path(f)
|
||||||
if path != None:
|
if path != None:
|
||||||
|
if self.extractor.needs_transcode == True: # Send download to vlc based transcoder
|
||||||
|
utils.call_threaded(player.player.transcode_audio, item, path)
|
||||||
|
else:
|
||||||
log.debug("downloading %s URL to %s filename" % (item.download_url, path,))
|
log.debug("downloading %s URL to %s filename" % (item.download_url, path,))
|
||||||
utils.call_threaded(utils.download_file, item.download_url, path)
|
utils.call_threaded(utils.download_file, item.download_url, path)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user