mirror of
https://github.com/l1ving/youtube-dl
synced 2025-01-24 10:52:55 +08:00
[bitporno] Add new extractor
This commit is contained in:
parent
cb6aa8907e
commit
fc42d22aba
@ -29,9 +29,10 @@ class BitpornoIE(InfoExtractor):
|
|||||||
if not tmp_str:
|
if not tmp_str:
|
||||||
raise ExtractorError('Note: this Bitporno extractor only support 720p videos.')
|
raise ExtractorError('Note: this Bitporno extractor only support 720p videos.')
|
||||||
true_url = tmp_str[tmp_str.rfind('https'):].replace("\\", "")
|
true_url = tmp_str[tmp_str.rfind('https'):].replace("\\", "")
|
||||||
print('Note: this Bitporno extractor only support 720p videos.\nVideo url: ' + true_url)
|
# print('Note: this Bitporno extractor only support 720p videos.\nVideo url: ' + true_url)
|
||||||
return {
|
return {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'title': self._og_search_title(webpage),
|
'title': self._og_search_title(webpage) or \
|
||||||
|
self._html_search_regex(r'<title>(.+?)</title>', webpage, 'title'),
|
||||||
'url': true_url,
|
'url': true_url,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user