aboutsummaryrefslogtreecommitdiffstats
path: root/hypervideo_dl/extractor/yandexmusic.py
diff options
context:
space:
mode:
Diffstat (limited to 'hypervideo_dl/extractor/yandexmusic.py')
-rw-r--r--hypervideo_dl/extractor/yandexmusic.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/hypervideo_dl/extractor/yandexmusic.py b/hypervideo_dl/extractor/yandexmusic.py
index 8e94f1f..1869091 100644
--- a/hypervideo_dl/extractor/yandexmusic.py
+++ b/hypervideo_dl/extractor/yandexmusic.py
@@ -1,6 +1,3 @@
-# coding: utf-8
-from __future__ import unicode_literals
-
import hashlib
import itertools
@@ -118,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,