From 23c60d2c204ab9c854ae838dea39707086a37160 Mon Sep 17 00:00:00 2001 From: Georgi Saev Date: Sun, 12 May 2019 21:24:53 +0300 Subject: [PATCH 1/3] 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. --- youtube_dl/extractor/bitchute.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/bitchute.py b/youtube_dl/extractor/bitchute.py index 4f39424f5..86802f3c9 100644 --- a/youtube_dl/extractor/bitchute.py +++ b/youtube_dl/extractor/bitchute.py @@ -65,7 +65,7 @@ class BitChuteIE(InfoExtractor): webpage, default=None) or self._html_search_meta( 'twitter:image:src', webpage, 'thumbnail') uploader = self._html_search_regex( - r'(?s)]+\bclass=["\']video-author[^>]+>(.+?)

', webpage, + r'(?s)
]+\bclass=["\']name[^>]+>(.+?)

', webpage, 'uploader', fatal=False) return { From ff24f33b8fb4f7f1ec18590e749828b36e3fd250 Mon Sep 17 00:00:00 2001 From: Georgi Saev Date: Sun, 12 May 2019 23:03:36 +0300 Subject: [PATCH 2/3] bitchute uploader regex fix 2 --- youtube_dl/extractor/bitchute.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/bitchute.py b/youtube_dl/extractor/bitchute.py index 86802f3c9..3e7d65a91 100644 --- a/youtube_dl/extractor/bitchute.py +++ b/youtube_dl/extractor/bitchute.py @@ -65,7 +65,7 @@ class BitChuteIE(InfoExtractor): webpage, default=None) or self._html_search_meta( 'twitter:image:src', webpage, 'thumbnail') uploader = self._html_search_regex( - r'(?s)
]+\bclass=["\']name[^>]+>(.+?)

', webpage, + r'(?s)
]+\bclass=["\']name[^>]+>(.+?)

', webpage, 'uploader', fatal=False) return { From 3c1bbd122e644ed4313abcec3283c3f42c8fb878 Mon Sep 17 00:00:00 2001 From: Sergey M Date: Thu, 23 May 2019 03:51:20 +0700 Subject: [PATCH 3/3] Update bitchute.py --- youtube_dl/extractor/bitchute.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/bitchute.py b/youtube_dl/extractor/bitchute.py index 3e7d65a91..1d69dafbd 100644 --- 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)
]+\bclass=["\']name[^>]+>(.+?)

', webpage, - 'uploader', fatal=False) + (r'(?s)
]+\bclass=["\']name[^>]+>(.+?)

', + r'(?s)]+\bclass=["\']video-author[^>]+>(.+?)

'), + webpage, 'uploader', fatal=False) return { 'id': video_id,