A feature-rich command-line audio/video downloader
[jsinterp] Workaround operator associativity issue
pukkandan1a7c9fad9f89
diff --git a/test/test_youtube_signature.py b/test/test_youtube_signature.pyindex b1c5cb2b35..c3dcb4d68f 100644--- a/test/test_youtube_signature.py+++ b/test/test_youtube_signature.py@@ -126,6 +126,10 @@ _NSIG_TESTS = ['https://www.youtube.com/s/player/c57c113c/player_ias.vflset/en_US/base.js','M92UUMHa8PdvPd3wyM', '3hPqLJsiNZx7yA',),+ (+ 'https://www.youtube.com/s/player/5a3b6271/player_ias.vflset/en_US/base.js',+ 'B2j7f_UPT4rfje85Lu_e', 'm5DmNymaGQ5RdQ',+ ),]diff --git a/yt_dlp/jsinterp.py b/yt_dlp/jsinterp.pyindex 2bb4acf3e7..4caad6f743 100644--- a/yt_dlp/jsinterp.py+++ b/yt_dlp/jsinterp.py@@ -117,8 +117,8 @@ _OPERATORS = { # None => Defined in JSInterpreter._operator'-': _js_arith_op(operator.sub),'*': _js_arith_op(operator.mul),- '/': _js_div,'%': _js_mod,+ '/': _js_div,'**': _js_exp,}