BobbyESP / spotdl-android

A SpotDL Android wrapper library built with Kotlin. (Spotify songs downloader for Android!)
MIT License
55 stars 3 forks source link
android android-library kotlin spotify wrapper-library

SpotDL Android

A SpotDL (python library) Android wrapper built with Kotlin

⬇️ DOWNLOAD SAMPLE APP

Download the sample app from the releases page.

Note that this app is just an example of the usage of this library. Many people asked me for new features, but I'm making a brand new app that will be fully customizable and with the ability to use custom commands along other things. This app is Spowlo. Currently it is only a Spotify mods downloader, but I'm doing a remake in a secondary branch in the same repo called "remake", where I'll be coding the new app that will have as principal functionality download songs (and also the mod downloader inside the app!). I'll keep you updated!

📣 DOCS IN PROGRESS!!

🎉 ANNOUNCEMENT: FIRST RELEASE

The library has came out, go to the releases page and see!

🔨 HOW IT WORKS

Installation

In Gradle:

Things that are mandatory:

Usage

Note Python 3.8 is already bundled in the library

FFMpeg

The library won't work without FFmpeg, so for using it, you have to add the second library that was told at the very top of the README

Now, you have to add this code to the last try-catch example:

FFMpeg.getInstance.init(this@App) //Same as before

Getting a final try-catch like this:

 try {
  SpotDL.getInstance().init(this@App) //Replace @App by the class you're using to initiate the lib.
  FFMpeg.getInstance().init(this@App)
 } catch (e: Excpetion) {
  Log.e("SpotDLExample", "An error ocurreed while trying to initiate the library: $e")
 }

👷 CREDITS

⚖️ LICENSE

This project is under the MIT License, the same as SpotDL uses.