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
1 changed files with 4 additions and 1 deletions

View File

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