Skip to content

Commit

Permalink
Update JioSaavn plugin version to 0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
appujet committed Apr 29, 2024
1 parent 5076a51 commit 342445c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@
- This plugin uses the [JioSaavn API](https://github.com/sumitkolhe/jiosaavn-api) to fetch songs.
- Special thanks to [topi314](https://github.com/topi314/LavaSrc) and [duncte123](https://github.com/duncte123) because most of the code for this plugin is based on [Lavasrc](https://github.com/topi314/LavaSrc) and [skybot-lavalink-plugin](https://github.com/DuncteBot/skybot-lavalink-plugin).

## Lavalink Usage
To install this plugin either download the latest release and place it into your plugins folder or add the following into your application.yml
Replace `VERSION` with the latest release version.

```yaml
lavalink:
plugins:
- dependency: "com.appujet:jiosaavn-plugin:VERSION"
repository: "https://jitpack.io"
```
## Configuration
For all supported urls and queries see [here](#supported-urls-and-queries)
Expand Down
2 changes: 1 addition & 1 deletion main/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

project.group = "com.github.appujet"
project.version = "0.1.0"
project.version = "0.1.1"
val archivesBaseName = "jiosaavn"

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import com.github.appujet.jiosaavn.ExtendedAudioTrack;
import com.github.appujet.jiosaavn.Utils;
import com.sedmelluq.discord.lavaplayer.tools.Units;
import com.sedmelluq.discord.lavaplayer.track.AudioTrack;
import com.sedmelluq.discord.lavaplayer.track.AudioTrackInfo;


Expand Down Expand Up @@ -63,4 +64,9 @@ private String getDownloadURL(String identifier) {
protected long getTrackDuration() {
return Units.CONTENT_LENGTH_UNKNOWN;
}

@Override
protected AudioTrack makeShallowClone() {
return new JioSaavnAudioTrack(this.trackInfo, manager);
}
}
2 changes: 1 addition & 1 deletion plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
id("com.github.breadmoirai.github-release")
}

val pluginVersion = Version(0, 1, 0)
val pluginVersion = Version(0, 1, 1)

group = "com.github.appujet"
version = "$pluginVersion"
Expand Down

0 comments on commit 342445c

Please sign in to comment.