mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-08-10 10:49:45 +00:00
[jsinterp] Fix division (#7279)
* Fixes nsig decryption for Youtube JS player `8c7583ff` Authored by: bashonly
This commit is contained in:
@@ -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')
|
||||
|
||||
|
Reference in New Issue
Block a user