mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-05 17:23:21 +08:00
[pornoram] Add new extractor
This commit is contained in:
parent
a9d6b42508
commit
0da1773029
@ -27,10 +27,6 @@ class PornoramaIE(InfoExtractor):
|
|||||||
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)
|
||||||
|
|
||||||
mobj = re.search(r'<h1 class="inlineError">(.+?)</h1>', webpage)
|
|
||||||
if mobj:
|
|
||||||
raise ExtractorError('%s said: %s' % (self.IE_NAME, clean_html(mobj.group(1))), expected=True)
|
|
||||||
|
|
||||||
video_url = compat_urllib_parse_unquote(
|
video_url = compat_urllib_parse_unquote(
|
||||||
self._search_regex(r'flv_url=(.+?)&', webpage, 'video URL'))
|
self._search_regex(r'flv_url=(.+?)&', webpage, 'video URL'))
|
||||||
video_title = self._html_search_regex(
|
video_title = self._html_search_regex(
|
||||||
|
Loading…
Reference in New Issue
Block a user