Kodi Community Forum
Beta Spotify for Kodi - Printable Version

Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Music Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=148)
---- Thread: Beta Spotify for Kodi (/showthread.php?tid=265356)



RE: Spotify for Kodi - Didko - 2017-06-14

On the repository it says 1.1.18. How to get the newest version?


RE: Spotify for Kodi - marcelveldt - 2017-06-14

(2017-06-14, 22:11)Didko Wrote: On the repository it says 1.1.18. How to get the newest version?

Most of the times a simple reboot will help...


RE: Spotify for Kodi - ivan22957 - 2017-06-14

Hi,
Can someone tell me what the problem is: doesn`t play any tracks and gives me an error.
Log here: https://pastebin.com/dcDuxLKu
Sorry, for me this log is a set of letters


RE: Spotify for Kodi - marcelveldt - 2017-06-14

(2017-06-14, 22:21)ivan22957 Wrote: Hi,
Can someone tell me what the problem is: doesn`t play any tracks and gives me an error.
Log here: https://pastebin.com/dcDuxLKu
Sorry, for me this log is a set of letters

I'm sorry, I assumed that everyone nowadays is running a 64 bit version of Windows so I did not compile librespot for 32bit Windows.
This means that only 64bits windows is supported, not 32 bits.
I'll have a look if I can compile it for 32bits too.

A more concrete answer to your question: It doesn't work because you're running a 32 bits version of Windows while the plugin expects 64 bits.


EDIT: Version 1.1.20 now has support for 32 bits windows too


RE: Spotify for Kodi - jacen05 - 2017-06-14

Plugin updated to 1.1.19 OK, but still no playback.
Now the error is different:

22:10:06.209 T:140419727881984 NOTICE: plugin.audio.spotify --> Playback requested for track 6pEICqJIBPMDjVIje6DDAx
22:10:06.349 T:140422502807936 ERROR: CCurlFile::FillBuffer - Failed: Server returned nothing (no headers, no data)(52)
22:10:06.349 T:140422502807936 ERROR: CCurlFile::Open failed with code 0 for http://localhost:52308/track/6pEICqJIBPMDjVIje6DDAx
22:10:06.349 T:140422502807936 ERROR: Open - failed to open source <http://localhost:52308/track/6pEICqJIBPMDjVIje6DDAx>
22:10:06.349 T:140422502807936 ERROR: Init: Error opening file http://localhost:52308/track/6pEICqJIBPMDjVIje6DDAx
22:10:06.349 T:140422502807936 ERROR: CAudioDecoder: Unable to Init Codec while loading file http://localhost:52308/track/6pEICqJIBPMDjVIje6DDAx
22:10:06.349 T:140422502807936 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
22:10:06.349 T:140422502807936 ERROR: Playlist Player: skipping unplayable item: 2, path [http://localhost:52308/track/6pEICqJIBPMDjVIje6DDAx]

And then it skipped the track and tried to play all tracks of the album, resulting in the same error list for all tracks.

I tried rebooting to be sure.
Then I got the message "No credentials have been configured" whereas my correct credentials are already set up on the plugin configuration.
Nevermind, after closing the plugin and opening it again, I can browse my Library, and same error as stated above!

@Didko: To solve this I had to wait for several minutes before a browser windows open (if you don't have any browser installed, like I was, you have to install one), and then login on the Spotify login page that appears.


RE: Spotify for Kodi - marcelveldt - 2017-06-14

(2017-06-14, 22:27)jacen05 Wrote: Plugin updated to 1.1.19 OK, but still no playback.
Please send me your full kodi logfile...

(2017-06-14, 22:27)jacen05 Wrote: @Didko: To solve this I had to wait for several minutes before a browser windows open (if you don't have any browser installed, like I was, you have to install one), and then login on the Spotify login page that appears.

You shouldn't get this prompt at all. Only on android or iOS authentication is required by using a browser. Other platforms use the spotify connect protocol.


So, conclusion is that it isn't working on some platforms somehow, I will need logs to determine what is happening.
The playback stuff is handled by librespot which I manually compiled and I had a very hard time doing that so I will not be surprised I missed a spot somewhere.


RE: Spotify for Kodi - jacen05 - 2017-06-14

Here is my full log file : https://paste.ubuntu.com/24859326


RE: Spotify for Kodi - Didko - 2017-06-14

So, I did a clean OpenELEC install and I was able to install 1.1.19, however I'm not able to login. I'm entering my credentials, but it tries to start a browser:

21:01:40.176 T:1758458784 NOTICE: plugin.audio.spotify --> Launching system-default browser
21:01:40.177 T:1758458784 NOTICE: plugin.audio.spotify --> Waiting for authentication token...

Unfortunately nothing happens as I have only Web Viewer. If I try to start the add-on again, it says that there are no credentials entered although they appear in the inputs already.


RE: Spotify for Kodi - marcelveldt - 2017-06-14

(2017-06-14, 23:08)Didko Wrote: So, I did a clean OpenELEC install and I was able to install 1.1.19, however I'm not able to login. I'm entering my credentials, but it tries to start a browser:

Something is wrong... it shouldn't start a webbrowser.
Please send me your Kodi logfile.

BTW: OpenELEC Huh I hope you mean LibreElec ?


RE: Spotify for Kodi - marcelveldt - 2017-06-14

(2017-06-14, 23:03)jacen05 Wrote: Here is my full log file : https://paste.ubuntu.com/24859326

Hmmm, I think I have to add some more debug lines to the code because I can't find what's wrong in your log.
The request is received by the audio proxy and after that it fails so somehow the audio stream is not retrieved from librespot.

Can you test 1 thing ? In the plugin's settings you'll find an option like "Buffer entire track"
Please enable that and try playback again. Maybe some systems cannot handle that the audio is sent chunked to the kodi player.


RE: Spotify for Kodi - jacen05 - 2017-06-14

Indeed, I already turned the setting on, as it was stated in the config that could help to solve playback issue.
I tried to turn it OFF, but still usual error:

23:36:06.307 T:140043487016704 NOTICE: plugin.audio.spotify --> Playback requested for track 3jlrtwYBNhK4N7IFac9vKy
23:36:06.611 T:140043487016704 ERROR: CCurlFile::FillBuffer - Failed: Transferred a partial file(18)
23:36:06.611 T:140043487016704 WARNING: CCurlFile::FillBuffer - Reconnect, (re)try 1
23:36:06.613 T:140043307718400 NOTICE: plugin.audio.spotify --> Playback requested for track 3jlrtwYBNhK4N7IFac9vKy
23:36:06.758 T:140043487016704 ERROR: CCurlFile::FillBuffer - Failed: Requested range was not delivered by the server(33)
23:36:06.807 T:140046223894912 ERROR: Playlist Player: skipping unplayable item: 0, path [http://localhost:52308/track/3jlrtwYBNhK4N7IFac9vKy]


RE: Spotify for Kodi - Didko - 2017-06-15

LibreELEC 8.0.2 fresh install with Spotify 1.1.19. Still unable to login with pretty much the same behavior as on OpenELEC. Here is an excerpt from the log when the Spotify addon is started:

Code:
22:11:35.798 T:1592783776  NOTICE: plugin.audio.spotify --> Architecture detected. Using librespot binary /storage/.kodi/addons/plugin.audio.spotify/resources/lib/librespot/linux_arm/librespot
22:11:35.889 T:1567617952  NOTICE: plugin.audio.spotify --> Audio proxy started on port 52308
22:11:36.489 T:1576006560  NOTICE: plugin.audio.spotify --> Architecture detected. Using librespot binary /storage/.kodi/addons/plugin.audio.spotify/resources/lib/librespot/linux_arm/librespot
22:11:36.579 T:1547482016  NOTICE: plugin.audio.spotify --> Audio proxy started on port 52308
22:11:36.622 T:1547482016 WARNING: plugin.audio.spotify --> Exception in webservice ! --> [Errno 98] Address already in use
22:11:37.191 T:1764750240 WARNING: COMXImageFile::GetCodingType progressive images not supported by decoder
22:11:37.192 T:1764750240 WARNING: Previous line repeats 1 times.
22:11:37.200 T:1764750240  NOTICE: LoadJpeg: unable to load /storage/.kodi/addons/plugin.audio.spotify/fanart.jpg
22:11:40.440 T:1773138848   ERROR: GetDirectory - Error getting
22:12:05.932 T:1592783776   ERROR: Previous line repeats 3 times.
22:12:05.932 T:1592783776  NOTICE: plugin.audio.spotify --> login credentials changed
22:13:05.931 T:1931264928  NOTICE: CAESinkPi:AddPackets Underrun (delay:0.00 frames:2205)
22:13:06.319 T:1592783776  NOTICE: plugin.audio.spotify --> Launching system-default browser
22:13:06.320 T:1592783776  NOTICE: plugin.audio.spotify --> Waiting for authentication token...
22:13:16.650 T:1873802144  NOTICE: Previous line repeats 5 times.
22:13:16.651 T:1873802144   ERROR: Unable to find plugin
22:13:16.651 T:1961808208   ERROR: GetDirectory - Error getting plugin://
22:13:16.652 T:1961808208   ERROR: CGUIMediaWindow::GetDirectory(plugin://) failed
22:13:18.340 T:1592783776  NOTICE: plugin.audio.spotify --> Waiting for authentication token...
22:13:30.223 T:1961808208  NOTICE: Previous line repeats 5 times.
22:13:30.223 T:1961808208   ERROR: Control 55 in window 10502 has been asked to focus, but it can't
22:13:30.349 T:1592783776  NOTICE: plugin.audio.spotify --> Waiting for authentication token...



RE: Spotify for Kodi - marcelveldt - 2017-06-15

(2017-06-15, 00:18)Didko Wrote: LibreELEC 8.0.2 fresh install with Spotify 1.1.19. Still unable to login with pretty much the same behavior as on OpenELEC. Here is an excerpt from the log when the Spotify addon is started:

From your log:
Exception in webservice ! --> [Errno 98] Address already in use

Can you do a reboot first please ?
After that check again if that line is still there, it means something else is already using the port 52308 which is used by the audio proxy


RE: Spotify for Kodi - seb937 - 2017-06-15

Hello marcelveldt.

Thanks a lot for your hard work!

I'm running into the same issue, I have LibreElec 8.0.2 and Spotify 1.1.19.
I can browse my library, but nothing will play. And after I clicked a song, Kodi freezes then crashes then restarts after about 1 min.

Full debug log: https://pastebin.com/de0rybx1


RE: Spotify for Kodi - marcelveldt - 2017-06-15

(2017-06-14, 23:38)jacen05 Wrote: Indeed, I already turned the setting on, as it was stated in the config that could help to solve playback issue.
I tried to turn it OFF, but still usual error:

I've just posted a new version (1.1.20) on the repo with added logging.
Can you please share your log after testing with that version ?
Please reboot after installing the update to make sure the log is fresh.