We have moved to a new Sailfish OS Forum. Please start new discussions there.
31

another way to play spotify

asked 2018-07-23 21:28:23 +0200

wdehoog gravatar image

updated 2018-07-29 10:47:32 +0200

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:

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.

edit retag flag offensive close delete

Comments

1

Keep up the great work!!

BonoNL ( 2018-07-23 22:44:11 +0200 )edit
2

Where is the donate link?

bomo ( 2018-07-24 14:38:09 +0200 )edit
3

Sorry 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 )edit

Using 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 )edit

I 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

1 Answer

Sort by » oldest newest most voted
0

answered 2019-06-18 18:14:43 +0200

R.G. Sidler gravatar image

updated 2019-06-18 18:16:02 +0200

Hi. Thanks a lot for this brilliant way of making it possible to listen to Spotify on the Jolla Phone. Do you think it might be possible to make it available for the Jolla Tablet, as well?

Sincerely

Roland

edit flag offensive delete publish link more

Comments

All sources are available so in theory it should be possible.

To see how doable/hard it is I enabled the i486 target on my hutspot obs project but unfortunately building fails. See: https://api.merproject.org/package/live_build_log/home:wdehoog:hutspot-wj/hutspot/sailfishos_i486/i586

Sorry but I will not investigate this any further myself. If you have more questions it might be better to create issues on github (https://github.com/sailfish-spotify/).

wdehoog ( 2019-06-18 21:56:11 +0200 )edit
Login/Signup to Answer

Question tools

Follow
12 followers

Stats

Asked: 2018-07-23 21:28:23 +0200

Seen: 2,308 times

Last updated: Jun 18 '19