-
Notifications
You must be signed in to change notification settings - Fork 67
Add Jiosaavn source #270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Add Jiosaavn source #270
Conversation
…ioTrackResolver & issue fixed in Deezer/Savaan when not using proxies removed newer java syntax to make compiler happy made StringCompareMirroringAudioTrackResolver easier to change/maintain rewrote StringCompareMirroringAudioTrackResolver Refactored SaavnAudioSourceManager & used proxymanager added proxy manager & applied it to deezer tidal, savaan, proxy support,
Fixed DefaultMirroringAudioTrackResolver and made it more readable
fixed a typo
…nnecessary configurations for regular users, and kept the functionality for more advanced users
Attempts to only pick out parts for a new JioSaavn PR. Conflicts: README.md application.example.yml main/src/main/java/com/github/topi314/lavasrc/deezer/DeezerAudioSourceManager.java main/src/main/java/com/github/topi314/lavasrc/deezer/DeezerAudioTrack.java main/src/main/java/com/github/topi314/lavasrc/tidal/TidalAudioTrack.java main/src/main/java/com/github/topi314/lavasrc/tidal/TidalSourceManager.java plugin/src/main/java/com/github/topi314/lavasrc/plugin/LavaSrcPlugin.java plugin/src/main/java/com/github/topi314/lavasrc/plugin/config/SourcesConfig.java plugin/src/main/java/com/github/topi314/lavasrc/plugin/config/TidalConfig.java
@topi314 let me know if you'd like me to squash the old commits or otherwise make the history linear |
Should be fine |
@topi314 This should now be ready. I have done a few simple tests on both the plugin and the source manager itself. Please review 🫶 @WeeeeeeeeeeS You are also welcome to share your thoughts |
plugin/src/main/java/com/github/topi314/lavasrc/plugin/LavaSrcPlugin.java
Show resolved
Hide resolved
I think you forgot to add jiosaavn here https://github.com/botlabs-gg/LavaSrc/tree/jiosaavn?tab=readme-ov-file#supported-urls-and-queries
and also https://github.com/botlabs-gg/LavaSrc/tree/jiosaavn?tab=readme-ov-file#lavaplayer-usage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, there are a few unnecessary logs which can be removed
I'll run the auto format over it before merging
main/src/main/java/com/github/topi314/lavasrc/jiosaavn/JioSaavnAudioTrack.java
Outdated
Show resolved
Hide resolved
byte[] decryptedBytes = cipher.doFinal(encryptedBytes); | ||
return new String(decryptedBytes); | ||
} catch (Exception e) { | ||
throw new FriendlyException("Failed to decrypt URL", Severity.COMMON, e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldnt we just rethrow as RuntimeException
here?
lavaplayer should wrap it in a FriendlyException
for us
This PR cannibalises the JioSaavn parts of #247
The approach is a little different:
main
library (e.g. the Lavalink). This can be done via theHttpConfigurable
interface. The source manager will have no concept of what a proxy isuseLocalNetwork
option. Either there is a proxy, or there isn'tStill to do: