1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-12-13 19:55:25 +00:00

precision

This commit is contained in:
bashonly
2025-06-22 22:25:51 +00:00
committed by GitHub
parent c158e3ed0f
commit 1ded2a3faa

View File

@@ -1794,7 +1794,7 @@ class InfoExtractor:
if not isinstance(data, dict): if not isinstance(data, dict):
return return
children = data.pop('children', None) children = data.pop('children', None)
if data and name and name[0] == '$': if data and isinstance(name, str) and name[:1] == '$':
# It is useful hydration JSON data # It is useful hydration JSON data
nextjs_data.append(data) nextjs_data.append(data)
flatten(children) flatten(children)