projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b27a78
)
[bitchute] use _html_search_regex for title extraction
author
Remita Amine
<remitamine@gmail.com>
Sun, 18 Nov 2018 15:15:10 +0000
(16:15 +0100)
committer
Remita Amine
<remitamine@gmail.com>
Sun, 18 Nov 2018 15:15:27 +0000
(16:15 +0100)
youtube_dl/extractor/bitchute.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/bitchute.py
b/youtube_dl/extractor/bitchute.py
index 446a1ab19f93955ab143e729628e4ecf1add9b16..43b4732aa0f1c1dcc721f93134d00b439562f418 100644
(file)
--- a/
youtube_dl/extractor/bitchute.py
+++ b/
youtube_dl/extractor/bitchute.py
@@
-37,7
+37,7
@@
class BitChuteIE(InfoExtractor):
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.57 Safari/537.36',
})
- title = self._search_regex(
+ title = self._
html_
search_regex(
(r'<[^>]+\bid=["\']video-title[^>]+>([^<]+)', r'<title>([^<]+)'),
webpage, 'title', default=None) or self._html_search_meta(
'description', webpage, 'title',