mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-07-23 21:58:29 +00:00
fullmatch the name
This commit is contained in:
parent
1fc012a0bf
commit
75d00c38e8
@ -1797,7 +1797,7 @@ def flatten(flight_data):
|
||||
if not isinstance(data, dict):
|
||||
return
|
||||
children = data.pop('children', None)
|
||||
if data and isinstance(name, str) and name.startswith('$L'):
|
||||
if data and isinstance(name, str) and re.fullmatch(r'\$L[0-9a-f]+', name):
|
||||
# It is useful hydration JSON data
|
||||
nextjs_data[name[2:]] = data
|
||||
flatten(children)
|
||||
|
Loading…
Reference in New Issue
Block a user