projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
186d185
)
[bitchute] Fix uploader extraction (#21076)
author
Georgi Saev
<georgi.saev@gmail.com>
Wed, 22 May 2019 20:51:50 +0000
(23:51 +0300)
committer
Sergey M
<dstftw@gmail.com>
Wed, 22 May 2019 20:51:50 +0000
(
03:51
+0700)
youtube_dl/extractor/bitchute.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/bitchute.py
b/youtube_dl/extractor/bitchute.py
index 4f39424f59ee12bb5adb916e707b3a33e9d35e58..1d69dafbd81e2ce5c82bd46633049d3ecec9f159 100644
(file)
--- a/
youtube_dl/extractor/bitchute.py
+++ b/
youtube_dl/extractor/bitchute.py
@@
-65,8
+65,9
@@
class BitChuteIE(InfoExtractor):
webpage, default=None) or self._html_search_meta(
'twitter:image:src', webpage, 'thumbnail')
uploader = self._html_search_regex(
- r'(?s)<p\b[^>]+\bclass=["\']video-author[^>]+>(.+?)</p>', webpage,
- 'uploader', fatal=False)
+ (r'(?s)<div class=["\']channel-banner.*?<p\b[^>]+\bclass=["\']name[^>]+>(.+?)</p>',
+ r'(?s)<p\b[^>]+\bclass=["\']video-author[^>]+>(.+?)</p>'),
+ webpage, 'uploader', fatal=False)
return {
'id': video_id,