|
|
@ -74,11 +74,8 @@ class BilibiliBaseIE(InfoExtractor):
|
|
|
|
query={'cid': cid})
|
|
|
|
query={'cid': cid})
|
|
|
|
if not isinstance(heatmap_json, dict):
|
|
|
|
if not isinstance(heatmap_json, dict):
|
|
|
|
return
|
|
|
|
return
|
|
|
|
try:
|
|
|
|
duration = self._parse_json(heatmap_json['debug']).get('max_time')
|
|
|
|
duration = self._parse_json(heatmap_json['debug'])['max_time']
|
|
|
|
step_sec = traverse_obj(heatmap_json, ('step_sec', {int}))
|
|
|
|
except Exception:
|
|
|
|
|
|
|
|
duration = None
|
|
|
|
|
|
|
|
step_sec = heatmap_json.get('step_sec', {int})
|
|
|
|
|
|
|
|
heatmap_data = traverse_obj(heatmap_json, ('events', 'default', {list}))
|
|
|
|
heatmap_data = traverse_obj(heatmap_json, ('events', 'default', {list}))
|
|
|
|
if not step_sec or not heatmap_data:
|
|
|
|
if not step_sec or not heatmap_data:
|
|
|
|
return
|
|
|
|
return
|
|
|
|