0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-12-28 01:41:06 +00:00

[jsinterp] Workaround operator associativity issue

https://github.com/yt-dlp/yt-dlp/issues/4635#issuecomment-1235384480
This commit is contained in:
pukkandan 2022-09-02 20:41:39 +05:30
parent 3c7a276234
commit 1a7c9fad9f
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39
2 changed files with 5 additions and 1 deletions

View file

@ -126,6 +126,10 @@
'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',
),
]

View file

@ -117,8 +117,8 @@ def _js_ternary(cndn, if_true=True, if_false=False):
'-': _js_arith_op(operator.sub),
'*': _js_arith_op(operator.mul),
'/': _js_div,
'%': _js_mod,
'/': _js_div,
'**': _js_exp,
}