From 2ebe6fefbeae02b826f9c84826c34fc0967023f3 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Mon, 1 Aug 2022 07:32:43 +0530 Subject: [PATCH] [extractor/yandexmusic] Extract higher quality format Closes #4512 --- yt_dlp/extractor/yandexmusic.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/yt_dlp/extractor/yandexmusic.py b/yt_dlp/extractor/yandexmusic.py index 8ea416a1d..794dc3eae 100644 --- a/yt_dlp/extractor/yandexmusic.py +++ b/yt_dlp/extractor/yandexmusic.py @@ -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,