[yandexvideo] fix extraction for Python 3.4
This commit is contained in:
parent
4066945919
commit
2f56caf083
1 changed files with 2 additions and 2 deletions
|
@ -66,7 +66,7 @@ class YandexVideoIE(InfoExtractor):
|
||||||
video_id = self._match_id(url)
|
video_id = self._match_id(url)
|
||||||
|
|
||||||
player = try_get((self._download_json(
|
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") {
|
player(content_id: "%s") {
|
||||||
computed_title
|
computed_title
|
||||||
content_url
|
content_url
|
||||||
|
@ -86,7 +86,7 @@ class YandexVideoIE(InfoExtractor):
|
||||||
title
|
title
|
||||||
views_count
|
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'):
|
if not player or player.get('error'):
|
||||||
player = self._download_json(
|
player = self._download_json(
|
||||||
'https://frontend.vh.yandex.ru/v23/player/%s.json' % video_id,
|
'https://frontend.vh.yandex.ru/v23/player/%s.json' % video_id,
|
||||||
|
|
Loading…
Reference in a new issue