diff --git a/youtube_dl/extractor/tiktok.py b/youtube_dl/extractor/tiktok.py index 075a2cdf9..6392c3963 100644 --- a/youtube_dl/extractor/tiktok.py +++ b/youtube_dl/extractor/tiktok.py @@ -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 {