re-added playlist cover download
This commit is contained in:
parent
5734aa73c1
commit
6a7847170e
|
@ -938,6 +938,7 @@ def after_download(tracks, settings, queueItem):
|
||||||
extrasPath = None
|
extrasPath = None
|
||||||
playlist = [None] * len(tracks)
|
playlist = [None] * len(tracks)
|
||||||
playlistCover = None
|
playlistCover = None
|
||||||
|
playlistURLs = []
|
||||||
errors = ""
|
errors = ""
|
||||||
searched = ""
|
searched = ""
|
||||||
for index in range(len(tracks)):
|
for index in range(len(tracks)):
|
||||||
|
@ -954,6 +955,7 @@ def after_download(tracks, settings, queueItem):
|
||||||
extrasPath = result['extrasPath']
|
extrasPath = result['extrasPath']
|
||||||
if not playlistCover and 'playlistCover' in result:
|
if not playlistCover and 'playlistCover' in result:
|
||||||
playlistCover = result['playlistCover']
|
playlistCover = result['playlistCover']
|
||||||
|
playlistURLs = result['playlistURLs']
|
||||||
if settings['saveArtwork'] and 'albumPath' in result:
|
if settings['saveArtwork'] and 'albumPath' in result:
|
||||||
for image in result['albumURLs']:
|
for image in result['albumURLs']:
|
||||||
downloadImage(image['url'], f"{result['albumPath']}.{image['ext']}", settings['overwriteFile'])
|
downloadImage(image['url'], f"{result['albumPath']}.{image['ext']}", settings['overwriteFile'])
|
||||||
|
|
Loading…
Reference in New Issue