mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-30 03:33:02 +00:00
[arte] PEP 8
This commit is contained in:
parent
5d6e1011df
commit
1d00a8823e
1 changed files with 1 additions and 2 deletions
|
@ -114,7 +114,7 @@ def find_iframe_url(webpage, default=NO_DEFAULT):
|
||||||
r'program\s*:\s*({.+?["\']embed_html["\'].+?}),?\s*\n',
|
r'program\s*:\s*({.+?["\']embed_html["\'].+?}),?\s*\n',
|
||||||
webpage, 'program', default=None)
|
webpage, 'program', default=None)
|
||||||
if program:
|
if program:
|
||||||
embed_html = self._parse_json(program,video_id)
|
embed_html = self._parse_json(program, video_id)
|
||||||
if embed_html:
|
if embed_html:
|
||||||
iframe_url = find_iframe_url(embed_html['embed_html'])
|
iframe_url = find_iframe_url(embed_html['embed_html'])
|
||||||
if iframe_url:
|
if iframe_url:
|
||||||
|
@ -129,7 +129,6 @@ def find_iframe_url(webpage, default=NO_DEFAULT):
|
||||||
webpage, 'embed url', group='url')
|
webpage, 'embed url', group='url')
|
||||||
return self.url_result(embed_url)
|
return self.url_result(embed_url)
|
||||||
|
|
||||||
|
|
||||||
def _extract_from_json_url(self, json_url, video_id, lang):
|
def _extract_from_json_url(self, json_url, video_id, lang):
|
||||||
info = self._download_json(json_url, video_id)
|
info = self._download_json(json_url, video_id)
|
||||||
player_info = info['videoJsonPlayer']
|
player_info = info['videoJsonPlayer']
|
||||||
|
|
Loading…
Reference in a new issue