1
0
mirror of https://github.com/l1ving/youtube-dl synced 2026-06-09 06:13:43 +08:00

[bitporno] Add new extractor

This commit is contained in:
zgvidwck
2017-06-14 22:29:33 +08:00
Unverified
parent cb6aa8907e
commit fc42d22aba
+3 -2
View File
@@ -29,9 +29,10 @@ class BitpornoIE(InfoExtractor):
if not tmp_str:
raise ExtractorError('Note: this Bitporno extractor only support 720p videos.')
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 {
'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,
}