[extractor/yandexmusic] Extract higher quality format

Closes #4512
This commit is contained in:
pukkandan 2022-08-01 07:32:43 +05:30
parent 5f2a7f7c4a
commit 2ebe6fefbe
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39

View file

@ -115,8 +115,7 @@ class YandexMusicTrackIE(YandexMusicBaseIE):
download_data = self._download_json(
'https://music.yandex.ru/api/v2.1/handlers/track/%s:%s/web-album_track-track-track-main/download/m' % (track_id, album_id),
track_id, 'Downloading track location url JSON',
headers={'X-Retpath-Y': url})
track_id, 'Downloading track location url JSON', query={'hq': 1}, headers={'X-Retpath-Y': url})
fd_data = self._download_json(
download_data['src'], track_id,