aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Musatov <akapulse@yandex.ru>2024-07-06 13:04:36 +0300
committerGitHub <noreply@github.com>2024-07-06 11:04:36 +0100
commitf4b47754d9716dbe61372d75e85e965328335ec9 (patch)
tree6a5b3ee50c0b5a9e318a51012d0bbddd14abbae8
parent37cea84f775129ad715b9bcd617251c831fcc980 (diff)
[YandexMusic] Download music in High Quality (320 Kbit/s)
PR #31159
-rw-r--r--youtube_dl/extractor/yandexmusic.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/youtube_dl/extractor/yandexmusic.py b/youtube_dl/extractor/yandexmusic.py
index 84969f8e1..55d4fb5a0 100644
--- a/youtube_dl/extractor/yandexmusic.py
+++ b/youtube_dl/extractor/yandexmusic.py
@@ -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(