]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[bitchute] Fix uploader extraction (#21076)
authorGeorgi Saev <georgi.saev@gmail.com>
Wed, 22 May 2019 20:51:50 +0000 (23:51 +0300)
committerSergey M <dstftw@gmail.com>
Wed, 22 May 2019 20:51:50 +0000 (03:51 +0700)
youtube_dl/extractor/bitchute.py

index 4f39424f59ee12bb5adb916e707b3a33e9d35e58..1d69dafbd81e2ce5c82bd46633049d3ecec9f159 100644 (file)
@@ -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,