mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-22 16:44:32 +01:00
[yandex music] Fix yandexmusic.py #26449 (thanks @Geograph-us)
https://github.com/ytdl-org/youtube-dl/issues/26449#issuecomment-700863588
This commit is contained in:
parent
d65d89183f
commit
4dc6d306c5
@ -109,8 +109,8 @@ class YandexMusicTrackIE(YandexMusicBaseIE):
|
|||||||
'Downloading track location JSON',
|
'Downloading track location JSON',
|
||||||
query={'format': 'json'})
|
query={'format': 'json'})
|
||||||
key = hashlib.md5(('XGRlBW9FXlekgbPrRHuSiA' + fd_data['path'][1:] + fd_data['s']).encode('utf-8')).hexdigest()
|
key = hashlib.md5(('XGRlBW9FXlekgbPrRHuSiA' + fd_data['path'][1:] + fd_data['s']).encode('utf-8')).hexdigest()
|
||||||
storage = track['storageDir'].split('.')
|
storage = track['realId']
|
||||||
f_url = 'http://%s/get-mp3/%s/%s?track-id=%s ' % (fd_data['host'], key, fd_data['ts'] + fd_data['path'], storage[1])
|
f_url = 'http://%s/get-mp3/%s/%s?track-id=%s ' % (fd_data['host'], key, fd_data['ts'] + fd_data['path'], storage)
|
||||||
|
|
||||||
thumbnail = None
|
thumbnail = None
|
||||||
cover_uri = track.get('albums', [{}])[0].get('coverUri')
|
cover_uri = track.get('albums', [{}])[0].get('coverUri')
|
||||||
|
Loading…
Reference in New Issue
Block a user