mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-06-27 17:08:32 +00:00
precision
This commit is contained in:
parent
c158e3ed0f
commit
1ded2a3faa
@ -1794,7 +1794,7 @@ def flatten(flight_data):
|
||||
if not isinstance(data, dict):
|
||||
return
|
||||
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
|
||||
nextjs_data.append(data)
|
||||
flatten(children)
|
||||
|
Loading…
Reference in New Issue
Block a user