mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-16 13:23:20 +00:00
[bitchute] Fix extraction by pass custom User-Agent
This commit is contained in:
parent
dd88fd65a5
commit
02df41354c
|
@ -33,7 +33,9 @@ def _real_extract(self, url):
|
||||||
video_id = self._match_id(url)
|
video_id = self._match_id(url)
|
||||||
|
|
||||||
webpage = self._download_webpage(
|
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(
|
title = self._search_regex(
|
||||||
(r'<[^>]+\bid=["\']video-title[^>]+>([^<]+)', r'<title>([^<]+)'),
|
(r'<[^>]+\bid=["\']video-title[^>]+>([^<]+)', r'<title>([^<]+)'),
|
||||||
|
|
Loading…
Reference in a new issue