projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[youtube] Remove info el for get_video_info request
[youtube-dl]
/
youtube_dl
/
extractor
/
hotstar.py
diff --git
a/youtube_dl/extractor/hotstar.py
b/youtube_dl/extractor/hotstar.py
index 45aa5e7ea8991881a4c8f6ee3a39a1e44f4d5998..8de9c4fafb852456ba772090f50ccdef3c5065d2 100644
(file)
--- 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 = {}
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')
)
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
content = try_get(v, getters, dict)
if content and content.get('contentId') == video_id:
video_data = content
+ break
title = video_data['title']
title = video_data['title']