aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/hotstar.py
diff options
context:
space:
mode:
authorAshish Gupta <39122144+Ashish0804@users.noreply.github.com>2021-09-23 14:30:49 +0530
committerGitHub <noreply@github.com>2021-09-23 14:30:49 +0530
commit388bc4a640561b78a8d38e95253721e7715b22cc (patch)
tree717622397b8b256c0cd33baac3e8c34670c2fdd0 /yt_dlp/extractor/hotstar.py
parent50eff38c1c071e2d389799843530c294d31887ed (diff)
downloadhypervideo-pre-388bc4a640561b78a8d38e95253721e7715b22cc.tar.lz
hypervideo-pre-388bc4a640561b78a8d38e95253721e7715b22cc.tar.xz
hypervideo-pre-388bc4a640561b78a8d38e95253721e7715b22cc.zip
[Hotstar] Add referer for subs (#1062)
Authored by: Ashish0804
Diffstat (limited to 'yt_dlp/extractor/hotstar.py')
-rw-r--r--yt_dlp/extractor/hotstar.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/yt_dlp/extractor/hotstar.py b/yt_dlp/extractor/hotstar.py
index 8d8a8bd75..8f0c67303 100644
--- a/yt_dlp/extractor/hotstar.py
+++ b/yt_dlp/extractor/hotstar.py
@@ -254,6 +254,9 @@ class HotStarIE(HotStarBaseIE):
'season_id': video_data.get('seasonId'),
'episode': title,
'episode_number': int_or_none(video_data.get('episodeNo')),
+ 'http_headers': {
+ 'Referer': 'https://www.hotstar.com/in',
+ }
}