From 593e3ec151eef616cffc0ed4c099e20d542703bc Mon Sep 17 00:00:00 2001 From: bashonly Date: Mon, 9 Jun 2025 17:54:10 -0500 Subject: [PATCH] split into 2 methods, support Set and Map, add test data Authored by: bashonly --- test/test_InfoExtractor.py | 14 +++++++++---- yt_dlp/extractor/common.py | 42 +++++++++++++++++++++++--------------- 2 files changed, 35 insertions(+), 21 deletions(-) diff --git a/test/test_InfoExtractor.py b/test/test_InfoExtractor.py index 52c1a6c943..9628c2927e 100644 --- a/test/test_InfoExtractor.py +++ b/test/test_InfoExtractor.py @@ -1952,7 +1952,7 @@ def test_search_nuxt_json(self): ''' PAYLOAD = { @@ -2003,9 +2007,11 @@ def test_search_nuxt_json(self): '$ssite-config': { 'env': 'production', 'name': 'podcast-website', + 'map': {}, }, }, - 'once': None, + 'once': [], + '_errors': {}, } BAD_HTML = '''