From 834bd696b8d2b6465c0d8c7432901c1e5368c353 Mon Sep 17 00:00:00 2001 From: JellyBrick Date: Sat, 4 Nov 2023 15:53:02 +0900 Subject: [PATCH] fix: update `IDENTITY_REGEX` --- .../lavaplayer/source/youtube/YoutubeAccessTokenTracker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/src/main/java/com/sedmelluq/discord/lavaplayer/source/youtube/YoutubeAccessTokenTracker.java b/main/src/main/java/com/sedmelluq/discord/lavaplayer/source/youtube/YoutubeAccessTokenTracker.java index 434a6fd8..06f142cc 100644 --- a/main/src/main/java/com/sedmelluq/discord/lavaplayer/source/youtube/YoutubeAccessTokenTracker.java +++ b/main/src/main/java/com/sedmelluq/discord/lavaplayer/source/youtube/YoutubeAccessTokenTracker.java @@ -41,7 +41,7 @@ public class YoutubeAccessTokenTracker { private static final Logger log = LoggerFactory.getLogger(YoutubeAccessTokenTracker.class); private static final String AUTH_SCRIPT_REGEX = ""; - private static final String IDENTITY_REGEX = "\\{clientId:\"(.+?)\",.+?:\"(.+?)\""; + private static final String IDENTITY_REGEX = "\\{clientId:\"(.+?)\",\\n?.+?:\"(.+?)\""; private static final Pattern authScriptPattern = Pattern.compile(AUTH_SCRIPT_REGEX); private static final Pattern identityPattern = Pattern.compile(IDENTITY_REGEX);