From aa8d4dfc0c79596ade3d9619dffab5331d2f7cdb Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Sun, 25 Feb 2018 04:55:15 -0600 Subject: [PATCH] Call to te appropiate download function depending in the extractor used --- src/controller/mainController.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/controller/mainController.py b/src/controller/mainController.py index 8847bfb..3b82de2 100644 --- a/src/controller/mainController.py +++ b/src/controller/mainController.py @@ -146,8 +146,11 @@ class Controller(object): item.get_download_url() path = self.window.get_destination_path(f) if path != None: - log.debug("downloading %s URL to %s filename" % (item.download_url, path,)) - utils.call_threaded(utils.download_file, item.download_url, path) + 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,)) + utils.call_threaded(utils.download_file, item.download_url, path) def on_set_volume(self, *args, **kwargs): volume = self.window.vol_slider.GetValue()