aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/hotstar.py
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp/extractor/hotstar.py')
-rw-r--r--yt_dlp/extractor/hotstar.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/yt_dlp/extractor/hotstar.py b/yt_dlp/extractor/hotstar.py
index 12e6c53d4..0bdf772a1 100644
--- a/yt_dlp/extractor/hotstar.py
+++ b/yt_dlp/extractor/hotstar.py
@@ -230,6 +230,11 @@ class HotStarIE(HotStarBaseIE):
if tags and 'encryption:plain' not in tags:
for f in current_formats:
f['has_drm'] = True
+ if tags and 'language' in tags:
+ lang = re.search(r'language:(?P<lang>[a-z]+)', tags).group('lang')
+ for f in current_formats:
+ if not f.get('langauge'):
+ f['language'] = lang
formats.extend(current_formats)
subs = self._merge_subtitles(subs, current_subs)
if not formats and geo_restricted: