Skip to content

Commit

Permalink
fix MatchError('throttling function name')
Browse files Browse the repository at this point in the history
  • Loading branch information
lekma committed Jun 23, 2023
1 parent 295380f commit d178c71
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/invidious/youtube/js.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]\)',
)

Expand Down

0 comments on commit d178c71

Please sign in to comment.