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

[test:InfoExtractor] Fix Nuxt JSON tests

Authored by: bashonly
This commit is contained in:
bashonly
2025-06-11 01:31:58 -05:00
parent 0ac5e97eb0
commit cc6111b31b

View File

@@ -2007,7 +2007,7 @@ jwplayer("mediaplayer").setup({"abouttext":"Visit Indie DB","aboutlink":"http:\/
'$ssite-config': {
'env': 'production',
'name': 'podcast-website',
'map': {},
'map': [],
'numbers': [1, 2, 3],
},
},
@@ -2026,7 +2026,7 @@ jwplayer("mediaplayer").setup({"abouttext":"Visit Indie DB","aboutlink":"http:\/
self.assertEqual(self.ie._search_nuxt_json(HTML, 'id'), PAYLOAD)
self.assertEqual(self.ie._search_nuxt_json('', None, fatal=False), {})
self.assertEqual(self.ie._search_nuxt_json(BAD_HTML, None, fatal=False), {})
self.assertEqual(self.ie._search_nuxt_json(BAD_HTML, None, default={}), {})
if __name__ == '__main__':