From 5b2c08ab16b5af86755a660be92ceb7dd81bffde Mon Sep 17 00:00:00 2001 From: Devoxin Date: Wed, 7 Aug 2024 00:02:27 +0100 Subject: [PATCH] Loosen n cipher regex again (more 403s) --- .../dev/lavalink/youtube/cipher/SignatureCipherManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/dev/lavalink/youtube/cipher/SignatureCipherManager.java b/common/src/main/java/dev/lavalink/youtube/cipher/SignatureCipherManager.java index afeafb6..a0bc5ca 100644 --- a/common/src/main/java/dev/lavalink/youtube/cipher/SignatureCipherManager.java +++ b/common/src/main/java/dev/lavalink/youtube/cipher/SignatureCipherManager.java @@ -82,7 +82,7 @@ public class SignatureCipherManager { private static final Pattern timestampPattern = Pattern.compile("(signatureTimestamp|sts):(\\d+)"); private static final Pattern nFunctionPattern = Pattern.compile( "function\\(\\s*(\\w+)\\s*\\)\\s*\\{" + - "var\\s*(\\w+)=(?:\\1\\.split\\(\"\"\\)|String\\.prototype\\.split\\.call\\(\\1,.*?\\))," + + "var\\s*(\\w+)=(?:\\1\\.split\\(.*?\\)|String\\.prototype\\.split\\.call\\(\\1,.*?\\))," + "\\s*(\\w+)=(\\[.*?]);\\s*\\3\\[\\d+]" + "(.*?try)(\\{.*?})catch\\(\\s*(\\w+)\\s*\\)\\s*\\{" + "\\s*return\"enhanced_except_([A-z0-9-]+)\"\\s*\\+\\s*\\1\\s*}" +