Skip to content

Commit

Permalink
[yandexmusic:track] Fix extraction (closes ytdl-org#26449, closes ytd…
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Nov 29, 2020
1 parent b449b73 commit d6ce649
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions youtube_dl/extractor/yandexmusic.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ def _real_extract(self, url):
'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')
Expand Down

0 comments on commit d6ce649

Please sign in to comment.