diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 491bd26..dc1470d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -17,9 +17,11 @@ variables:
-DdeployAtEnd=true
cache:
- key: "maven-$CI_COMMIT_REF_SLUG"
+ key: ${CI_PROJECT_NAME}-${CI_COMMIT_REF_SLUG}
paths:
- .m2/repository
+ - .mvn
+ policy: pull-push
stages:
- compile
@@ -31,6 +33,10 @@ compile:
script:
- "chmod +x ./mvnw"
- "./mvnw $MAVEN_CLI_OPTS compile"
+ rules:
+ - if: '$CI_PIPELINE_SOURCE == "merge_request_event" || $CI_COMMIT_BRANCH == "main"'
+ when: always
+ - when: never
test:
stage: test
@@ -42,6 +48,8 @@ test:
reports:
junit:
- "**/target/*-reports/TEST-*.xml"
+ rules:
+ - if: '$CI_PIPELINE_SOURCE == "merge_request_event" || $CI_COMMIT_BRANCH == "main"'
package:
stage: package
@@ -51,4 +59,9 @@ package:
artifacts:
name: "Maven artifacts from $CI_PROJECT_NAME on $CI_COMMIT_REF_SLUG"
paths:
- - "**/target"
\ No newline at end of file
+ - "**/target"
+ rules:
+ - if: '$CI_COMMIT_TAG'
+ - if: '$CI_COMMIT_BRANCH == "main"'
+ when: manual
+ - when: never
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index fb2d29a..1316731 100644
--- a/pom.xml
+++ b/pom.xml
@@ -100,7 +100,7 @@
net.dv8tion
JDA
- 5.3.1
+ 5.3.2
dev.arbjerg
diff --git a/src/main/java/me/bobert/netneutrality/music/source/UdioAudioSourceManager.java b/src/main/java/me/bobert/netneutrality/music/source/UdioAudioSourceManager.java
index aaa55bf..cd79651 100644
--- a/src/main/java/me/bobert/netneutrality/music/source/UdioAudioSourceManager.java
+++ b/src/main/java/me/bobert/netneutrality/music/source/UdioAudioSourceManager.java
@@ -129,7 +129,7 @@ public class UdioAudioSourceManager implements AudioSourceManager {
}
protected JsonBrowser loadTrackInfoFromPageContent(String content) throws IOException {
- String startTag = "self.__next_f.push([1,\"10:";
+ String startTag = "self.__next_f.push([1,\"12:";
String endTag = "\\n\"])";
String json = DataFormatTools.extractBetween(content, startTag, endTag);