From fc42d22abad0719ac5724be70f4dfd1dcdbe6609 Mon Sep 17 00:00:00 2001 From: zgvidwck Date: Wed, 14 Jun 2017 22:29:33 +0800 Subject: [PATCH] [bitporno] Add new extractor --- youtube_dl/extractor/bitporno.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/bitporno.py b/youtube_dl/extractor/bitporno.py index 3a3d49d49..1385039f3 100644 --- a/youtube_dl/extractor/bitporno.py +++ b/youtube_dl/extractor/bitporno.py @@ -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'(.+?)', webpage, 'title'), 'url': true_url, }