Pass metadata to downloaders

This commit is contained in:
Manuel Cortez 2020-07-08 13:14:08 -05:00
parent c06df2092e
commit dae1df79ad

View File

@ -195,10 +195,10 @@ class Controller(object):
if path != None: if path != None:
log.debug("User has requested the following path: {0}".format(path,)) log.debug("User has requested the following path: {0}".format(path,))
if self.extractor.transcoder_enabled() == True: # Send download to vlc based transcoder if self.extractor.transcoder_enabled() == True: # Send download to vlc based transcoder
utils.call_threaded(player.player.transcode_audio, item, path, _format=item.extractor.get_file_format()) utils.call_threaded(player.player.transcode_audio, item, path, _format=item.extractor.get_file_format(), metadata=item.get_metadata())
else: 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, metadata=item.get_metadata())
def on_set_volume(self, *args, **kwargs): def on_set_volume(self, *args, **kwargs):
volume = self.window.vol_slider.GetValue() volume = self.window.vol_slider.GetValue()