From 12a68fb45f49a2cf621f330e85f58cf19a924297 Mon Sep 17 00:00:00 2001 From: JellyBrick Date: Sat, 4 Nov 2023 22:19:02 +0900 Subject: [PATCH] fix: update `IDENTITY_REGEX` (#44) --- .../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 2ea5dc5d..d29b26c0 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);