1
0
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:
bashonly 2025-06-22 22:25:51 +00:00 committed by GitHub
parent c158e3ed0f
commit 1ded2a3faa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)