mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-04 07:56:06 +08:00
fixed code criticized by flake8
This commit is contained in:
parent
7e1483ac8b
commit
6ebd99d0ea
@ -37,10 +37,10 @@ class AnimefullxIE(InfoExtractor):
|
||||
webpage = self._download_webpage(url, video_id)
|
||||
scripturl = self._html_search_regex(r'<iframe src="([^"]+)"', webpage, u'script URL')
|
||||
|
||||
if ( scripturl[ 0 ] == '/' ):
|
||||
script = self._download_webpage( 'http://www.animefullx.com/'+scripturl[1:], '' )
|
||||
if ( 'http' in scripturl ):
|
||||
script = self._download_webpage( scripturl, '' )
|
||||
if (scripturl[0] == '/'):
|
||||
script = self._download_webpage('http://www.animefullx.com/' + scripturl[1:], '')
|
||||
if ('http' in scripturl):
|
||||
script = self._download_webpage(scripturl, '')
|
||||
|
||||
video_url = self._html_search_regex(r'file:\ ?"([^"]+)"', script, u'video URL')
|
||||
|
||||
@ -48,6 +48,6 @@ class AnimefullxIE(InfoExtractor):
|
||||
'_type': 'video',
|
||||
'id': video_id,
|
||||
'url': video_url,
|
||||
'title': self._og_search_title( webpage ),
|
||||
'title': self._og_search_title(webpage),
|
||||
'ext': 'mp4',
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user