updated uploader regex

The new design of bitchute uses a channel-banner div to display uploader information, breaking the old regex and causing the following warning: 
WARNING: unable to extract uploader; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

this fixes it.
This commit is contained in:
Georgi Saev 2019-05-12 21:24:53 +03:00 committed by GitHub
parent a277dd33eb
commit 23c60d2c20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,7 @@ class BitChuteIE(InfoExtractor):
webpage, default=None) or self._html_search_meta( webpage, default=None) or self._html_search_meta(
'twitter:image:src', webpage, 'thumbnail') 'twitter:image:src', webpage, 'thumbnail')
uploader = self._html_search_regex( uploader = self._html_search_regex(
r'(?s)<p\b[^>]+\bclass=["\']video-author[^>]+>(.+?)</p>', webpage, r'(?s)<div class=["\']channel-banner.*(?s)<p\b[^>]+\bclass=["\']name[^>]+>(.+?)</p>', webpage,
'uploader', fatal=False) 'uploader', fatal=False)
return { return {