[YandexMusic] downloads music in High Quality (320 Kbit/s)

This commit is contained in:
SMusatov 2022-08-11 07:04:57 +03:00
parent e6a836d54c
commit 4b519d9a92

View File

@ -120,6 +120,7 @@ class YandexMusicTrackIE(YandexMusicBaseIE):
download_data = self._download_json( 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), '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', track_id, 'Downloading track location url JSON',
query={'hq': 1},
headers={'X-Retpath-Y': url}) headers={'X-Retpath-Y': url})
fd_data = self._download_json( fd_data = self._download_json(