another way to play spotify
Hi,
Since my sailfish phone (oneplus) has no android support and cutespot stopped working I have been looking for an alternative. The Spotify web-api is quit nice but the big hurdles to take are authentication and playing a track.
Using the web-api I have made an application called 'hutspot' that can browse and search albums/artists/playlists and you can control a player if it appears in Spotify's list. The app requires Spotify Premium. I have also build a package for Librespot, an open source Spotify client. It can turn your sailfish device into a Spotify player.
However authentication and playing a track still remain problematic. Authentication is done using a webview or the browser. Sometimes it works, sometimes it doesn't. And the Spotify authentication site does scale badly. In order to become visible in the list of devices Librespot must log in or an official spotify app must have controlled it recently. The same goes for all the other players you have.
If you are willing to give one of these a try:
- hutspot: https://github.com/sailfish-spotify/hutspot/wiki/Installation
- hutspot screenshots: https://github.com/sailfish-spotify/hutspot/tree/master/screenshots
- librespot: https://github.com/sailfish-spotify/hutspot/wiki/Librespot
Do note that:
- Getting this working is not a great user experience and it will probably remain this way
- I do not have much time nor motivation to provide support. I like to develop but please keep in mind it is a hobby.
EDIT: The project has been moved to a new github organization: https://github.com/sailfish-spotify/. Github user ksiazkowicz is working on UI redesign and fixing autherization and other bugs.
Keep up the great work!!
BonoNL ( 2018-07-23 22:44:11 +0200 )editWhere is the donate link?
bomo ( 2018-07-24 14:38:09 +0200 )editSorry there is no such link. I really appreciate the gesture but it is a hobby that I am able to do because others are investing their time as well.
If someone wants to show appreciation for my work by a donation then I suggest to help support openrepos.net.
wdehoog ( 2018-07-24 17:51:37 +0200 )editUsing librespot is the way to go. Can you use the same type of authentification used by the spotify plugin for mopidy? That plugin is able to log in and to play tracks on a linux device. Maybe it can be tweaked and compiled for Sailfish OS ?
tourdetour ( 2018-07-29 10:14:38 +0200 )editI am not sure but I think Librespot and libspotify (used by mopidy) use the same login mechanism for playing tracks: credentials or none. For using the web-api (browse/search/etc.) we need to use the web-api 'Authorization Code Flow' (OAuth 2.0).
wdehoog ( 2018-07-29 10:52:52 +0200 )edit