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);