1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-12-15 12:45:27 +00:00

split into 2 methods, support Set and Map, add test data

Authored by: bashonly
This commit is contained in:
bashonly
2025-06-09 17:54:10 -05:00
parent 0beb5faf3c
commit 593e3ec151
2 changed files with 35 additions and 21 deletions

View File

@@ -1952,7 +1952,7 @@ jwplayer("mediaplayer").setup({"abouttext":"Visit Indie DB","aboutlink":"http:\/
<script data-ssr="true" id="__NUXT_DATA__" type="application/json">
[
["ShallowReactive",1],
{"data":2,"state":21,"once":25},
{"data":2,"state":21,"once":25,"_errors":28},
["ShallowReactive",3],
{"$abcdef123456":4},
{"podcast":5,"activeEpisodeData":7},
@@ -1973,10 +1973,14 @@ jwplayer("mediaplayer").setup({"abouttext":"Visit Indie DB","aboutlink":"http:\/
"Podcast Creator",
[],
{"$ssite-config":22},
{"env":23,"name":24},
{"env":23,"name":24,"map":26},
"production",
"podcast-website",
["Set"]
["Set"],
["Reactive",27],
["Map"],
["ShallowReactive",29],
{}
]
</script>'''
PAYLOAD = {
@@ -2003,9 +2007,11 @@ jwplayer("mediaplayer").setup({"abouttext":"Visit Indie DB","aboutlink":"http:\/
'$ssite-config': {
'env': 'production',
'name': 'podcast-website',
'map': {},
},
},
'once': None,
'once': [],
'_errors': {},
}
BAD_HTML = '''
<script data-ssr="true" id="__NUXT_DATA__" type="application/json">