diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/source/nico/NicoAudioSourceManager.java b/src/main/java/com/sedmelluq/discord/lavaplayer/source/nico/NicoAudioSourceManager.java index b6c4c4e1e..0b361cfc6 100644 --- a/src/main/java/com/sedmelluq/discord/lavaplayer/source/nico/NicoAudioSourceManager.java +++ b/src/main/java/com/sedmelluq/discord/lavaplayer/source/nico/NicoAudioSourceManager.java @@ -47,7 +47,7 @@ * Audio source manager that implements finding NicoNico tracks based on URL. */ public class NicoAudioSourceManager implements AudioSourceManager, HttpConfigurable { - private static final String TRACK_URL_REGEX = "^(?:http://|https://|)(?:(?:www\\.|sp\\.|)nicovideo\\.jp/watch/|nico\\.ms/)(sm[0-9]+)(?:\\?.*|)$"; + private static final String TRACK_URL_REGEX = "^(?:http://|https://|)(?:(?:www\\.|sp\\.|)nicovideo\\.jp/watch/|nico\\.ms/)((?:sm|nm)[0-9]+)(?:\\?.*|)$"; private static final Pattern trackUrlPattern = Pattern.compile(TRACK_URL_REGEX); private static final Logger log = LoggerFactory.getLogger(NicoAudioSourceManager.class);