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)
|
||||||
|
with ThreadPoolExecutor(settings['queueConcurrency']) as executor:
|
||||||
for pos, trackAPI in enumerate(playlistTracksAPI, start=1):
|
for pos, trackAPI in enumerate(playlistTracksAPI, start=1):
|
||||||
trackAPI['_EXTRA_PLAYLIST'] = playlistAPI
|
trackAPI['_EXTRA_PLAYLIST'] = playlistAPI
|
||||||
trackAPI['POSITION'] = pos
|
trackAPI['POSITION'] = pos
|
||||||
trackAPI['FILENAME_TEMPLATE'] = settings['playlistTracknameTemplate']
|
trackAPI['FILENAME_TEMPLATE'] = settings['playlistTracknameTemplate']
|
||||||
downloadTrackObj(trackAPI, settings, overwriteBitrate)
|
executor.submit(downloadTrackObj, trackAPI, settings, overwriteBitrate)
|
||||||
|
|
Loading…
Reference in New Issue