mirror of
https://gitlab.com/dstftw/youtube-dl.git
synced 2020-11-16 09:42:26 +00:00
[ultimedia] PEP8
This commit is contained in:
parent
616af2f4b9
commit
5f88e02818
|
@ -42,7 +42,6 @@ class UltimediaIE(InfoExtractor):
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
video_id = self._match_id(url)
|
video_id = self._match_id(url)
|
||||||
|
|
||||||
webpage = self._download_webpage(url, video_id)
|
webpage = self._download_webpage(url, video_id)
|
||||||
|
|
||||||
deliver_url = self._search_regex(
|
deliver_url = self._search_regex(
|
||||||
|
@ -81,8 +80,8 @@ class UltimediaIE(InfoExtractor):
|
||||||
title = clean_html((
|
title = clean_html((
|
||||||
self._html_search_regex(
|
self._html_search_regex(
|
||||||
r'(?s)<div\s+id="catArticle">.+?</div>(.+?)</h1>',
|
r'(?s)<div\s+id="catArticle">.+?</div>(.+?)</h1>',
|
||||||
webpage, 'title', default=None)
|
webpage, 'title', default=None) or
|
||||||
or self._search_regex(
|
self._search_regex(
|
||||||
r"var\s+nameVideo\s*=\s*'([^']+)'",
|
r"var\s+nameVideo\s*=\s*'([^']+)'",
|
||||||
deliver_page, 'title')))
|
deliver_page, 'title')))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue