logo

youtube-dl

[mirror] Download/Watch videos from video hostersgit clone https://hacktivis.me/git/mirror/youtube-dl.git
commit: 3eb8d22ddb8982ca4fb56bb7a8d6517538bf14c6
parent 4e714f9df1ed2cccd51df60d45ff5504abe827b7
Author: dirkf <fieldhouse@gmx.net>
Date:   Mon, 31 Mar 2025 04:21:09 +0100

[JSInterp] Temporary fix for #33102

Diffstat:

Myoutube_dl/jsinterp.py2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git 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: