forgot playlists
This commit is contained in:
parent
8a6afd969c
commit
86e17d04d9
|
@ -356,8 +356,9 @@ def download_album(id, settings, overwriteBitrate=False):
|
||||||
def download_playlist(id, settings, overwriteBitrate=False):
|
def download_playlist(id, settings, overwriteBitrate=False):
|
||||||
playlistAPI = dz.get_playlist(id)
|
playlistAPI = dz.get_playlist(id)
|
||||||
playlistTracksAPI = dz.get_playlist_tracks_gw(id)
|
playlistTracksAPI = dz.get_playlist_tracks_gw(id)
|
||||||
for pos, trackAPI in enumerate(playlistTracksAPI, start=1):
|
with ThreadPoolExecutor(settings['queueConcurrency']) as executor:
|
||||||
trackAPI['_EXTRA_PLAYLIST'] = playlistAPI
|
for pos, trackAPI in enumerate(playlistTracksAPI, start=1):
|
||||||
trackAPI['POSITION'] = pos
|
trackAPI['_EXTRA_PLAYLIST'] = playlistAPI
|
||||||
trackAPI['FILENAME_TEMPLATE'] = settings['playlistTracknameTemplate']
|
trackAPI['POSITION'] = pos
|
||||||
downloadTrackObj(trackAPI, settings, overwriteBitrate)
|
trackAPI['FILENAME_TEMPLATE'] = settings['playlistTracknameTemplate']
|
||||||
|
executor.submit(downloadTrackObj, trackAPI, settings, overwriteBitrate)
|
||||||
|
|
Loading…
Reference in New Issue