From b7e8252e08fca79acf64a3d9aa92379c3c0cbfb2 Mon Sep 17 00:00:00 2001 From: Nibor <156368035+infnibor@users.noreply.github.com> Date: Wed, 24 Jul 2024 00:17:30 +0200 Subject: [PATCH] Update GetyarnAudioSourceManager.java - Discussed topic once on Discord server LavaLink --- .../lavaplayer/source/getyarn/GetyarnAudioSourceManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/src/main/java/com/sedmelluq/discord/lavaplayer/source/getyarn/GetyarnAudioSourceManager.java b/main/src/main/java/com/sedmelluq/discord/lavaplayer/source/getyarn/GetyarnAudioSourceManager.java index 9dd7cd3b..883a1909 100644 --- a/main/src/main/java/com/sedmelluq/discord/lavaplayer/source/getyarn/GetyarnAudioSourceManager.java +++ b/main/src/main/java/com/sedmelluq/discord/lavaplayer/source/getyarn/GetyarnAudioSourceManager.java @@ -32,7 +32,7 @@ * Audio source manager which detects getyarn.io tracks by URL. */ public class GetyarnAudioSourceManager implements HttpConfigurable, AudioSourceManager { - private static final Pattern GETYARN_REGEX = Pattern.compile("(?:http://|https://(?:www\\.)?)?getyarn\\.io/yarn-clip/(.*)"); + private static final Pattern GETYARN_REGEX = Pattern.compile("https?://(?:www\\.|)getyarn\\.io/yarn-clip/(.*)"); private final HttpInterfaceManager httpInterfaceManager;