diff options
author | Remita Amine <remitamine@gmail.com> | 2020-12-31 11:58:52 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2020-12-31 12:18:30 +0100 |
commit | 2f56caf0835786fa5af92da428ef90a530d90f26 (patch) | |
tree | 225c786a2cfc57c51aaac121f62687c6f21c256c /youtube_dl/extractor/yandexvideo.py | |
parent | 4066945919a3f51a01f551ade8957f4856c67e65 (diff) |
[yandexvideo] fix extraction for Python 3.4
Diffstat (limited to 'youtube_dl/extractor/yandexvideo.py')
-rw-r--r-- | youtube_dl/extractor/yandexvideo.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/yandexvideo.py b/youtube_dl/extractor/yandexvideo.py index ab8c84c93..6a166ec9b 100644 --- a/youtube_dl/extractor/yandexvideo.py +++ b/youtube_dl/extractor/yandexvideo.py @@ -66,7 +66,7 @@ class YandexVideoIE(InfoExtractor): video_id = self._match_id(url) player = try_get((self._download_json( - 'https://frontend.vh.yandex.ru/graphql', video_id, data=b'''{ + 'https://frontend.vh.yandex.ru/graphql', video_id, data=('''{ player(content_id: "%s") { computed_title content_url @@ -86,7 +86,7 @@ class YandexVideoIE(InfoExtractor): title views_count } -}''' % video_id.encode(), fatal=False)), lambda x: x['player']['content']) +}''' % video_id).encode(), fatal=False)), lambda x: x['player']['content']) if not player or player.get('error'): player = self._download_json( 'https://frontend.vh.yandex.ru/v23/player/%s.json' % video_id, |