[YandexMusic] Download music in High Quality (320 Kbit/s)
authorSergey Musatov <akapulse@yandex.ru>
Sat, 6 Jul 2024 10:04:36 +0000 (13:04 +0300)
committerGitHub <noreply@github.com>
Sat, 6 Jul 2024 10:04:36 +0000 (11:04 +0100)
PR #31159

youtube_dl/extractor/yandexmusic.py

index 84969f8e114f99f8c5beab257d0c52fa2c40d7ef..55d4fb5a01a232fd3be98da807b3f0dfa587a2d7 100644 (file)
@@ -120,6 +120,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',
+            query={'hq': 1},
             headers={'X-Retpath-Y': url})
 
         fd_data = self._download_json(