Skip to content

Commit edcd970

Browse files
committed
added /playlist and update to v 0.1.8
1 parent 480fe06 commit edcd970

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
version=0.1.8
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1+
#Sat Oct 05 20:47:35 IST 2024
12
distributionBase=GRADLE_USER_HOME
23
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
4-
networkTimeout=10000
5-
validateDistributionUrl=true
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
65
zipStoreBase=GRADLE_USER_HOME
76
zipStorePath=wrapper/dists

main/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
}
55

66
project.group = "com.github.appujet"
7-
project.version = "0.1.7"
7+
project.version = findProperty("version") as String
88
val archivesBaseName = "jiosaavn"
99

1010
dependencies {

main/src/main/java/com/github/appujet/jiosaavn/source/JioSaavnAudioSourceManager.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import java.util.stream.Collectors;
2424

2525
public class JioSaavnAudioSourceManager extends ExtendedAudioSourceManager {
26-
private static final Pattern JIOSAAVN_REGEX = Pattern.compile("(https?://)(www\\.)?jiosaavn\\.com/(song|album|featured|artist)/([a-zA-Z0-9-_]+)");
26+
private static final Pattern JIOSAAVN_REGEX = Pattern.compile("(https?://)(www\\.)?jiosaavn\\.com/(song|album|featured|artist|s/playlist)/([a-zA-Z0-9-_]+)(/([a-zA-Z0-9-_]+))?");
2727
private static final Logger log = LoggerFactory.getLogger(JioSaavnAudioSourceManager.class);
2828
public static String BASE_API = null;
2929
public static final String SEARCH_PREFIX = "jssearch:";
@@ -56,12 +56,14 @@ public AudioItem loadItem(AudioPlayerManager audioPlayerManager, AudioReference
5656
return null;
5757
}
5858
String type = matcher.group(3);
59+
5960
switch (type) {
6061
case "song":
6162
return this.getTrack(audioReference.identifier);
6263
case "album":
6364
return this.getAlbum(audioReference.identifier);
6465
case "featured":
66+
case "s/playlist":
6567
return this.getPlaylist(audioReference.identifier);
6668
case "artist":
6769
return this.getArtist(audioReference.identifier);

plugin/build.gradle.kts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ plugins {
55
id("com.github.johnrengelman.shadow")
66
id("com.github.breadmoirai.github-release")
77
}
8-
9-
val pluginVersion = Version(0, 1, 7)
8+
val pluginVersion = findProperty("version")
109

1110
group = "com.github.appujet"
12-
version = "$pluginVersion"
11+
version = pluginVersion!!
1312
val archivesBaseName = "jiosaavn-plugin"
1413
val preRelease = System.getenv("PRERELEASE") == "true"
1514
val verName = "${if (preRelease) "PRE_" else ""}$pluginVersion${if(preRelease) "_${System.getenv("GITHUB_RUN_NUMBER")}" else ""}"

0 commit comments

Comments
 (0)