From d178c714c30f717368e3f15442c4a6dfd004da93 Mon Sep 17 00:00:00 2001 From: Malek Date: Fri, 23 Jun 2023 15:49:39 +0100 Subject: [PATCH] fix MatchError('throttling function name') --- lib/invidious/youtube/js.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/invidious/youtube/js.py b/lib/invidious/youtube/js.py index 81cc217..11475c4 100644 --- a/lib/invidious/youtube/js.py +++ b/lib/invidious/youtube/js.py @@ -41,7 +41,9 @@ def findDecipherFuncName(js): __descrambleFuncNamePatterns__ = ( - r'a\.[a-zA-Z]\s*&&\s*\([a-z]\s*=\s*a\.get\("n"\)\)\s*&&\s*' + #r'a\.[a-zA-Z]\s*&&\s*\([a-z]\s*=\s*a\.get\("n"\)\)\s*&&\s*' + #r'\([a-z]\s*=\s*([a-zA-Z0-9$]+)(\[\d+\])?\([a-z]\)', + r'a\.[a-zA-Z]\s*&&\s*\([a-z]\s*=\s*a\.get\("n"\)\)\s*&&.*?\|\|\s*([a-z]+)', r'\([a-z]\s*=\s*([a-zA-Z0-9$]+)(\[\d+\])?\([a-z]\)', )