From 3eb8d22ddb8982ca4fb56bb7a8d6517538bf14c6 Mon Sep 17 00:00:00 2001 From: dirkf Date: Mon, 31 Mar 2025 04:21:09 +0100 Subject: [JSInterp] Temporary fix for #33102 --- youtube_dl/jsinterp.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'youtube_dl/jsinterp.py') diff --git a/youtube_dl/jsinterp.py b/youtube_dl/jsinterp.py index f0c4fa928..69c8f77ca 100644 --- a/youtube_dl/jsinterp.py +++ b/youtube_dl/jsinterp.py @@ -686,6 +686,8 @@ class JSInterpreter(object): raise self.Exception('Cannot get index {idx!r:.100}'.format(**locals()), expr=repr(obj), cause=e) def _dump(self, obj, namespace): + if obj is JS_Undefined: + return 'undefined' try: return json.dumps(obj) except TypeError: -- cgit v1.2.3