diff options
author | Sergey M․ <dstftw@gmail.com> | 2020-11-29 22:15:51 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2020-11-29 22:15:51 +0700 |
commit | d6ce649f15cff2e259a0f38b176b97fec293f0ff (patch) | |
tree | e658c0770119e5e87f0534ac99a25b867b63fe74 | |
parent | b449b73dccf6fdd676770ea83cff322348cdf778 (diff) |
[yandexmusic:track] Fix extraction (closes #26449, closes #26669, closes #26747, closes #26748, closes #26762)
-rw-r--r-- | youtube_dl/extractor/yandexmusic.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/youtube_dl/extractor/yandexmusic.py b/youtube_dl/extractor/yandexmusic.py index 08d35e04c..5805caef2 100644 --- a/youtube_dl/extractor/yandexmusic.py +++ b/youtube_dl/extractor/yandexmusic.py @@ -109,8 +109,7 @@ class YandexMusicTrackIE(YandexMusicBaseIE): 'Downloading track location JSON', query={'format': 'json'}) key = hashlib.md5(('XGRlBW9FXlekgbPrRHuSiA' + fd_data['path'][1:] + fd_data['s']).encode('utf-8')).hexdigest() - storage = track['storageDir'].split('.') - 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'], track['id']) thumbnail = None cover_uri = track.get('albums', [{}])[0].get('coverUri') |