A feature-rich command-line audio/video downloader
[hotstar] fix video data extraction(closes #18386)
Remita Aminec3c098dcf282
diff --git a/youtube_dl/extractor/hotstar.py b/youtube_dl/extractor/hotstar.pyindex 45aa5e7ea8..8de9c4fafb 100644--- a/youtube_dl/extractor/hotstar.py+++ b/youtube_dl/extractor/hotstar.py@@ -79,7 +79,7 @@ class HotStarIE(HotStarBaseIE):r'<script>window\.APP_STATE\s*=\s*({.+?})</script>',webpage, 'app state'), video_id)video_data = {}- getters = (+ getters = list(lambda x, k=k: x['initialState']['content%s' % k]['content']for k in ('Data', 'Detail'))@@ -87,6 +87,7 @@ class HotStarIE(HotStarBaseIE):content = try_get(v, getters, dict)if content and content.get('contentId') == video_id:video_data = content+ breaktitle = video_data['title']