aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/jsinterp.py
diff options
context:
space:
mode:
authordirkf <fieldhouse@gmx.net>2023-06-11 13:33:50 +0100
committerdirkf <fieldhouse@gmx.net>2023-06-11 17:23:00 +0100
commita2534f7b888416e872d5afd1862eb3e30fc69fc7 (patch)
tree4e0020f047de77e54a924a6db4ca85ef562b97c4 /youtube_dl/jsinterp.py
parentb8a86dcf1aa837577178ae25357d8241ab4ba6c1 (diff)
downloadyoutube-dl-a2534f7b888416e872d5afd1862eb3e30fc69fc7.tar.xz
[jsinterp] Fix div bug breaking player 8c7583ff
Thx bashonly: https://github.com/ytdl-org/youtube-dl/issues/32292#issuecomment-1585639223 Fixes #32292
Diffstat (limited to 'youtube_dl/jsinterp.py')
-rw-r--r--youtube_dl/jsinterp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/jsinterp.py b/youtube_dl/jsinterp.py
index dc580943e..9d4a5bc57 100644
--- a/youtube_dl/jsinterp.py
+++ b/youtube_dl/jsinterp.py
@@ -82,7 +82,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 _NaN
return operator.truediv(a or 0, b) if b else float('inf')