KRTirtho / spotube

🎧 Open source Spotify client that doesn't require Premium nor uses Electron! Available for both desktop & mobile!
https://spotube.krtirtho.dev/
Other
30.83k stars 1.28k forks source link

Use the native Spotify audio source for Spotube #2073

Open MurzNN opened 3 days ago

MurzNN commented 3 days ago

Is there an existing issue for this?

Pain

Spotube now provides only three audio sources: Youtube, Piped, Jiosavn. But with this approach, we have a problem finding the right track, which leads us to issues like this: https://github.com/KRTirtho/spotube/issues/883 https://github.com/KRTirtho/spotube/issues/2067

Suggested solution

To resolve this issue, maybe we can use the native Spotify audio source to play tracks?

There are some libraries that can help implement this, like https://github.com/librespot-org/librespot for example, or https://github.com/Spotifyd/spotifyd

You can look at the opensource applications, which already do this:

And even if the Spotify API is not available directly, we can run a webview with the Spotify Web UI, and control the playback from the app. So, all we need to do is to get the track ID, open the page with it, and click "Play" button, like https://gitlab.com/ColinDuquesnoy/MellowPlayer does.

So, what do you think about this? If it is not possible, could you please describe why, in more detail? Thanks!

Useful resources

No response

Additional information

No response

Self grab

skruglov2023 commented 2 days ago

I think the reason is in the name - Spot Tube It's split into 2 parts so that it's not really an alternative client for either platform, which helps them not be in the direct spotlight.