1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-29 11:44:33 +01:00

fix(tiktok): use Referer header in requests

Signed-off-by: Aakash Gajjar <skyqutip@gmail.com>
This commit is contained in:
Aakash Gajjar 2020-09-17 11:04:25 +05:30
parent 19a107f21c
commit 19ee7e1543

View File

@ -37,7 +37,10 @@ class TikTokBaseIE(InfoExtractor):
'url': try_get(video_info, lambda x: x['video']['urls'][0]), 'url': try_get(video_info, lambda x: x['video']['urls'][0]),
'ext': 'mp4', 'ext': 'mp4',
'height': height, 'height': height,
'width': width 'width': width,
'http_headers': {
'Referer': self._og_search_url(webpage),
},
}) })
return { return {