diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2023-03-03 16:48:54 +0530 |
---|---|---|
committer | dirkf <fieldhouse@gmx.net> | 2023-03-03 15:02:15 +0000 |
commit | 3e92c60fcd94c37428d57153dbdd14cd0a1f9226 (patch) | |
tree | dee1b139d0ae0f4e2a8408ec4c91e642298a1e7a /youtube_dl/jsinterp.py | |
parent | 3da17834a49fad2a97c308fdd89aa26781ef4d60 (diff) |
[jsinterp] Handle `Date` at epoch 0
See yt-dlp/yt_dlp#6400
Diffstat (limited to 'youtube_dl/jsinterp.py')
-rw-r--r-- | youtube_dl/jsinterp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/jsinterp.py b/youtube_dl/jsinterp.py index a3bc42a61..e28670a3f 100644 --- a/youtube_dl/jsinterp.py +++ b/youtube_dl/jsinterp.py @@ -405,7 +405,7 @@ class JSInterpreter(object): left, right = self._separate_at_paren(obj[len(klass):]) argvals = self.interpret_iter(left, local_vars, allow_recursion) expr = konstr(*argvals) - if not expr: + if expr is None: raise self.Exception('Failed to parse {klass} {left!r:.100}'.format(**locals()), expr=expr) expr = self._dump(expr, local_vars) + right break |