Skip to content

Commit 5b2c08a

Browse files
committed
Loosen n cipher regex again (more 403s)
1 parent 5fc73eb commit 5b2c08a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/main/java/dev/lavalink/youtube/cipher/SignatureCipherManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public class SignatureCipherManager {
8282
private static final Pattern timestampPattern = Pattern.compile("(signatureTimestamp|sts):(\\d+)");
8383
private static final Pattern nFunctionPattern = Pattern.compile(
8484
"function\\(\\s*(\\w+)\\s*\\)\\s*\\{" +
85-
"var\\s*(\\w+)=(?:\\1\\.split\\(\"\"\\)|String\\.prototype\\.split\\.call\\(\\1,.*?\\))," +
85+
"var\\s*(\\w+)=(?:\\1\\.split\\(.*?\\)|String\\.prototype\\.split\\.call\\(\\1,.*?\\))," +
8686
"\\s*(\\w+)=(\\[.*?]);\\s*\\3\\[\\d+]" +
8787
"(.*?try)(\\{.*?})catch\\(\\s*(\\w+)\\s*\\)\\s*\\{" +
8888
"\\s*return\"enhanced_except_([A-z0-9-]+)\"\\s*\\+\\s*\\1\\s*}" +

0 commit comments

Comments
 (0)