From: Andrew Udvare Date: Mon, 27 Aug 2018 15:04:56 +0000 (-0400) Subject: [bitchute] Fix extraction by pass custom User-Agent X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=02df41354cfae04555b3f78b2fcca3e66ec7faba;p=youtube-dl [bitchute] Fix extraction by pass custom User-Agent --- diff --git a/youtube_dl/extractor/bitchute.py b/youtube_dl/extractor/bitchute.py index da263714a..446a1ab19 100644 --- a/youtube_dl/extractor/bitchute.py +++ b/youtube_dl/extractor/bitchute.py @@ -33,7 +33,9 @@ class BitChuteIE(InfoExtractor): video_id = self._match_id(url) webpage = self._download_webpage( - 'https://www.bitchute.com/video/%s' % video_id, video_id) + 'https://www.bitchute.com/video/%s' % video_id, video_id, headers={ + '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( (r'<[^>]+\bid=["\']video-title[^>]+>([^<]+)', r'([^<]+)'),