diff options
author | dirkf <fieldhouse@gmx.net> | 2025-03-31 04:21:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-31 04:21:09 +0100 |
commit | 3eb8d22ddb8982ca4fb56bb7a8d6517538bf14c6 (patch) | |
tree | 4c94eec9f9b82f22373d83f909d6fc73fb699fe0 /youtube_dl/jsinterp.py | |
parent | 4e714f9df1ed2cccd51df60d45ff5504abe827b7 (diff) |
Diffstat (limited to 'youtube_dl/jsinterp.py')
-rw-r--r-- | youtube_dl/jsinterp.py | 2 |
1 files changed, 2 insertions, 0 deletions
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: |