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]\)', )