Clementine: Spotify looses connection after search

Created on 25 Sep 2018  Â·  25Comments  Â·  Source: clementine-player/Clementine

Before posting

Please follow the steps below and check the boxes with [x] once you did the step.

  • [ x] I checked the issue tracker for similar issues
  • [x ] I checked the changelog if the issue is already resolved
  • [ x] I tried the latest Clementine build from here

System information

Please provide information about your system and the version of Clementine used.

  • Operating System: Ubuntu Studio 18.4 & window 7
  • Clementine version: 1.3.1-485-g5e0caa512 (Ubuntu)

Expected behaviour / actual behaviour

Recently ( a week?) the search on the Spotify plugin stops the connection with Spotify. Before the search I can play Spotify songs from my playlist (also top tracks are visible). After doing a search on Spotify all connection to Spotify is lost. I installed the stable version of Clementine at work (windows 7, different computer and network) and face the same problem. (

When starting Spotify from the terminal I get errors like " static void SpotifyClient::ConnectionErrorCallback(sp_session*, sp_error) Can not connect to Spotify "

I reported this issue in the Clementine Google Group and found out another user is facing the same problem using windows 10 and Debian 9.

I contacted Spotify by chat and they say it has to be a fault on Clementine side.

Steps to reproduce the problem (only for bugs)

  • start Clementine
  • play Spotify song from playlist or Top Track (song should play)
  • do a Search on Spotify (no result showing)
  • if started Clementine from terminal you should see error coming
  • play another Spotify song from playlist (song doesn't play)

Most helpful comment

@JulianVolodia yes, I can try.

All 25 comments

Same issue here, Opensuse Tumbleweed. It has been happening for over a month for me.

After searching the only way to play from spotify again is by restarting the application. Signing out and then signing in again makes it play for about one minute, then stops playing again.

I am not a developer, but can this issue be related to the depreciation of Libspotify? And if so will there be an alternative way to use Spotify in Clementine?

I have a similar issue, except, I cannot play or search for anything from Spotify.

I see the following in my log when I try to search

22:18:52.075 DEBUG SpotifyClient:167                libspotify: "02:18:52.075 E [ap:3915] Connection error:  112" 
22:18:53.108 DEBUG SpotifyClient:167                libspotify: "02:18:53.108 I [ap:1752] Connecting to AP ap.spotify.com:80" 
22:18:53.162 DEBUG SpotifyClient:167                libspotify: "02:18:53.162 I [ap:1226] Connected to AP: 104.154.126.255:80" 
22:18:53.355 DEBUG SpotifyClient:167                libspotify: "02:18:53.355 E [ap:1694] AP Socket Error: Software caused connection abort (103)" 
22:18:53.355 DEBUG SpotifyClient:167                libspotify: "02:18:53.355 E [ap:3915] Connection error:  112" 
22:18:53.363 DEBUG SpotifyClient:818                static void SpotifyClient::ConnectionErrorCallback(sp_session*, sp_error) Can not connect to Spotify 

I am able to find tracks in the Internet tab under Spotify > Top Tracks, and it seems like some metadata loads (name, artists, song length), but the songs don't play.

@nwam have you tried playing a track without searching first? Behaviour I'm seeing on Ubuntu 18.04 / Clementine 1.3.1-333-gf854bc5 is:

  • Start Clementine. Playing a Spotify track from a previously created playlist works as expected.
  • Try searching. As soon as I search for anything, libspotify drops into the fault state you posted and gets stuck there. No spotify tracks can be played.

It looks like it's specifically the search call that is failing, but that's knocking over everything Spotify.

@justen I just tested and that is the case. No songs play after I try to search (which returns no results). I'm running Ubuntu 17.10 / Clementine 1.3.1.

Same here Elementary OS 0.4.1 Loki, Clemetine VersiĂłn 1.3.1-399-g3134e09.
From Playlist works, but from search it chrashes

@nwam @justen I see similar behaviour. Searching always fails with the same 112 connection error but it does not necessarily kill spotify playback of tracks that are in a playlist. I think I was seeing that a couple of weeks back.

Now playback seems pretty stable with tracks that are in my playlist. But there is no longer a way to get spotify tracks into a playlist. Albums disappeared years ago. Playlists disappeared last year. Search was until now the only option.

Ubuntu 18.04, Clementine 1.3.1-477-ga65dabc

Drag and drop from the Spotify app to Clementine is also no option due to a gstreamer error. Very frustrating. Seems to be the fault of the Spotifylib, which is not supported anymore by Spotify. Seems they slowly let it die.

@gbrauen You can still add Spotify stuff to a playlist. Save a playlist, then open it up in a text editor. Search for the track in the Spotify web interface, right click it and copy the song link. You should end up with:-

https://open.spotify.com/track/4k69tGZejKwfXPCJtyP55x

The alphanumeric string at the end is the magic bit.
You can use that to manually add the track to your playlist like this (everything here you can work out from the track listing, but I think it's only really the title and location that you need):

 <track>
        <location>spotify:track:4k69tGZejKwfXPCJtyP55x</location>
        <title>Never Fight A Man With A Perm</title>
        <creator>IDLES</creator>
        <trackNum>2</trackNum>
        <duration>228000</duration>
        <album>Joy as an Act of Resistance</album>
 </track>

Not exactly a great workaround, but it does at least work. For now.

Thanks @justen. It is a bit of work, but it works.

@justen Yes, thanks. I was not thinking of the 3 application solution when I said "no longer a way" to get a spotify track in. That will work - many problems can be solved with a good text editor. :smile:

Is there any sort of contact address for Spotify? I have half a mind to remind them that third party player support is the only reason I'm shelling out for premium, and if they don't want to support it anymore they're going to lose customers.

Is there any sort of contact address for Spotify?

Users’ only hope is their “Ideas” platform, but they won’t care about your report unless it gets 500 votes.

This is my little script to add song from spotify to current playlist without using text editor

https://github.com/kentsangkm/ClementineSpotifyWorkaround/tree/master

Hi Kentsangkm,

Thnx, this is the best workaround so far :)

Marcel

Same behaviour on Windows 10. @justen tip works on Windows also.

@kentsangkm Thanks, starting from your idea, I posted a Gist with a python script to create a xspf playlist of all the songs in a spotify album when given the album link and an output file name.
https://gist.github.com/gbrauen/451f859046c05ccdadf355d645bcee02

Anyone to make (or modify?) a script to create a playlist from a Spotify playlist? (: Would that be a harder one to write? (I don't know anything about either playlist formats, sorry.)

With something like that we could just manage the playlist in Spotify client and run a script after adding/deleting music. And keep listening with a nicer interface, with all our local files, too.

Hi all, I created another script to search song from spotify and import it

https://github.com/kentsangkm/clementine_spotify_search

@kimmov-kipe I think your request shouldn't be very hard. Please let me know if you still want to have it

Hi @kentsangkm how about refactoring Clementine? Could you try to integrate import feature from Spotify in Clementine?

@kentsangkm what you think? It looks like nice feature imho.

@JulianVolodia yes, I can try.

@kentsangkm That would be great, thank you!
Even though, if it could be integrated to Clementine itself, that would be even more awesome of course.

@kentsangkm if you have any question or want some pair programming or feedback return to us.

You could also file another issue as feature and link it here. I will try to fix issue later.

I think the problem is libspotify. It's pretty much dead. I guess using librespot can technically work

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MavropaliasG picture MavropaliasG  Â·  3Comments

SystemParadox picture SystemParadox  Â·  5Comments

technicaltitch picture technicaltitch  Â·  5Comments

MiguelTremblay picture MiguelTremblay  Â·  6Comments

ieee8023 picture ieee8023  Â·  4Comments