diff options
author | bashonly <88596187+bashonly@users.noreply.github.com> | 2023-06-10 17:49:12 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-10 22:49:12 +0000 |
commit | b4a252fba81f53631c07ca40ce7583f5d19a8a36 (patch) | |
tree | 6fc21ea8b586f9b1eafd7525da6b8bdc9b4ea7f5 /yt_dlp/jsinterp.py | |
parent | 4f7b11cc1c1cebf598107e00cd7295588ed484da (diff) | |
download | hypervideo-pre-b4a252fba81f53631c07ca40ce7583f5d19a8a36.tar.lz hypervideo-pre-b4a252fba81f53631c07ca40ce7583f5d19a8a36.tar.xz hypervideo-pre-b4a252fba81f53631c07ca40ce7583f5d19a8a36.zip |
[jsinterp] Fix division (#7279)
* Fixes nsig decryption for Youtube JS player `8c7583ff`
Authored by: bashonly
Diffstat (limited to 'yt_dlp/jsinterp.py')
-rw-r--r-- | yt_dlp/jsinterp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/jsinterp.py b/yt_dlp/jsinterp.py index 7c7940efd..d6d555733 100644 --- a/yt_dlp/jsinterp.py +++ b/yt_dlp/jsinterp.py @@ -44,7 +44,7 @@ def _js_arith_op(op): def _js_div(a, b): - if JS_Undefined in (a, b) or not (a and b): + if JS_Undefined in (a, b) or not (a or b): return float('nan') return (a or 0) / b if b else float('inf') |