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 - marcelveldt - 2017-07-18

(2017-07-18, 18:39)gazzauk71 Wrote: So went and updated my S905X Kodi device, same Libreelec version Dev 8.0.2e from KSZAQ, using Spotify vers: 1.1.36. Seems solid in playback mode, although out of first 5 tracks one track 'cut' paused sound and then went onto the next track ok. Continuing testing for the next few hours, until the missus wants the TV back!

Thanks for the extended testing. The issue that sometimes the audio refuses to play is the deadlock issue I was talking about here in the forum thread. That issue is fixed in the Kodi v18 code and will maybe be backported to Kodi v17.


RE: Spotify for Kodi - rollcry - 2017-07-19

Hello Marcel,

tahnks for your great work - the 1.1.36 seems to work really smooth on my OSMC RP2.


RE: Spotify for Kodi - Rouzax - 2017-07-19

(2017-07-18, 19:23)marcelveldt Wrote:
(2017-07-18, 17:05)Rouzax Wrote: I just tried to install the plugin on my Raspberry Pi 3 with LibreElec but it will not login.
Logs are at:
https://pastebin.com/7LppSxgA

Are you 100% sure you've entered the correct credentials ?
If you have a Facebook account to log into spotify you might want to create a device password and log in with that details.
You can create a device account when you log into spotify in the webbrowser in your account details.
I'm 100% sure it are the correct credentials. I do not have my Spotify connected to my Facebook.


RE: Spotify for Kodi - sammolenaar - 2017-07-19

(2017-07-18, 19:20)marcelveldt Wrote:
(2017-07-18, 15:12)sammolenaar Wrote: Marcel, first of all many thanks for the awesome work! Surely this is gonna be a killer-app for Kodi once it reaches version 2.0. For as long as the add-on works, it looks and works great. However, after 2:40 min tracks stop playing, after which occasionally the next track begins, or the system crashes.

I'm running LibreELEC on a raspberry pi 2, see attached the error log. Seems that something is causing timeouts of the stream which leads the thing to fail. Any idea's how to fix this would be greatly appreciated!

Hmm, strange. The range requests by the Kodi player seem to be failing somehow on your system.
Did you test with version 1.1.36 of the add-on ? Does it always stop at 2:40 min ?

Hi Marcel,

Yes, indeed it stops almost dead-on with every track I play at 2:40, unless the track I try to play is relatively short, in which case it plays it flawless.
Could it be that it buffers short tracks completely during the first streaming session, and that reopening the stream in case of longer tracks is causing problems?

Just guessing Tongue

Cheers!


RE: Spotify for Kodi - sammolenaar - 2017-07-19

(2017-07-19, 06:57)rollcry Wrote: Hello Marcel,

tahnks for your great work - the 1.1.36 seems to work really smooth on my OSMC RP2.

Hi Rollcry,

That sounds promising. Could you please let me know what OS and version you are running it with? Than I'll take that too Tongue


RE: Spotify for Kodi - jurialmunkey - 2017-07-19

@marcelveldt.

Had a couple of strange errors today where I was about half way through an album and then kodi very quickly skipped through all the remaining tracks (basically no pause at all between each track)

Log: https://pastebin.com/S9Ma1zTn

Code:
18:24:05.567 T:139650269488896 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
18:24:05.603 T:139650161030912 WARNING: plugin.audio.spotify --> Exception in utils ! --> [Errno 12] Cannot allocate memory
18:24:05.604 T:139650269488896   ERROR: Open - Unhandled exception
18:24:05.604 T:139650269488896   ERROR: Open - Error opening http://localhost:52308/track/1hYCpnJTQ1hAxlKUPvaPLN/271
18:24:05.604 T:139650269488896   ERROR: Init: Error opening file http://localhost:52308/track/1hYCpnJTQ1hAxlKUPvaPLN/271
18:24:05.604 T:139650269488896   ERROR: CAudioDecoder: Unable to Init Codec while loading file http://localhost:52308/track/1hYCpnJTQ1hAxlKUPvaPLN/271

This was the error repeated. I wonder if I maybe ran out of memory?
I've only noticed this happening maybe 3-4 times since the update to 1.1.36 - It has been working really well otherwise.


RE: Spotify for Kodi - sammolenaar - 2017-07-19

Also tried it with OSMC now, and switched to tethering to prevent any issues may be caused by ISP. Still every track longer than let's say 4 minutes crashes at 2:39


RE: Spotify for Kodi - Didko - 2017-07-19

Hey, Marcel! Any update on the RPi1 support? I'll be available for further testing within a week, but wanted to check if there was any improvement meanwhile.


RE: Spotify for Kodi - sammolenaar - 2017-07-19

@marcelveldt

And this is after a clean install of libreelec 8.0.2.e and spotify 1.1.36. Again the same problem

https://paste.ubuntu.com/25124775/

line 1150 onwards.


RE: Spotify for Kodi - mazeeff - 2017-07-19

(2017-07-19, 14:04)sammolenaar Wrote: @marcelveldt

And this is after a clean install of libreelec 8.0.2.e and spotify 1.1.36. Again the same problem

https://paste.ubuntu.com/25124775/

line 1150 onwards.

I also get the exact same error at 2:40 on LibreElec 8.02 and Spotify 1.1.37 on a RP3. I also tried a Milhouse nightly based on Kodi 18.0, and got the same error. It is very repeatable.
Running 1.1.37 on a LibreElec X86 8.02 on same network, and it works perfectly!

https://pastebin.com/wNzVHdq6
- Hardware: RP3
- OS: LibreElec 8.0.2
- Kodi version: 17.3
- Addon version: 1.1.37


RE: Spotify for Kodi - AussieFries - 2017-07-20

V 1.1.37 works without problems if I control the plugin directly on my Kodi htpc.

However the Official remote for Kodi iOS app doesn't work well with the plugin. I can browse playlists, but if I press play, nothing happens.

I like to control Spotify without turning on the tv every time I want to change a playlist. Can someone please advise a remote control app for iOS that works with the Spotify plugin? Preferably one that doesn't require at least 5 clicks to get to the plugin..


Spotify for Kodi - marcelveldt - 2017-07-20

(2017-07-20, 09:37)AussieFries Wrote: V 1.1.37 works without problems if I control the plugin directly on my Kodi htpc.

However the Official remote for Kodi iOS app doesn't work well with the plugin. I can browse playlists, but if I press play, nothing happens.

I like to control Spotify without turning on the tv every time I want to change a playlist. Can someone please advise a remote control app for iOS that works with the Spotify plugin? Preferably one that doesn't require at least 5 clicks to get to the plugin..


You can enable Spotify Connect in the settings and just use the Spotify app to control the Spotify playback on your Kodi device


RE: Spotify for Kodi - AussieFries - 2017-07-20

(2017-07-20, 09:39)marcelveldt Wrote:
(2017-07-20, 09:37)AussieFries Wrote: V 1.1.37 works without problems if I control the plugin directly on my Kodi htpc.

However the Official remote for Kodi iOS app doesn't work well with the plugin. I can browse playlists, but if I press play, nothing happens.

I like to control Spotify without turning on the tv every time I want to change a playlist. Can someone please advise a remote control app for iOS that works with the Spotify plugin? Preferably one that doesn't require at least 5 clicks to get to the plugin..


You can enable Spotify Connect in the settings and just use the Spotify app to control the Spotify playback on your Kodi device

Thank you very much for your (very) quick reply! Using Spotify Connect, does streaming take place on the Kodi device? One of the reasons why I like your plugin so much is that my iPhone's battery is not draining like when I would use airplay to stream it to Kodi.


RE: Spotify for Kodi - PaulL - 2017-07-20

It should be as for any other spotify connect - so it acts as a remote but doesn't stream from the device.


RE: Spotify for Kodi - Jefachtig - 2017-07-21

Thanks a lot marcelveldt for this addon! Works like a charm now on my pi2 with osmc! I must say that i also experienced the 2:40 thing which is saw mentioned above but it rarely happens.