• 1
  • 49
  • 50
  • 51(current)
  • 52
  • 53
  • 131
Beta Spotify for Kodi
Hoping for some help with this plugin...

I have installed the plugin in Kodi on a raspberry pi 3 running rasbian. Initially, I was getting the issue where there was no token and a search for the error in the error log brought me to this thread.

I then fired up Ubuntu 14, installed Kodi, installed the Spotify addon. Ran it, the web browser popped up, authenticated the plugin and the Spotify plugin worked perfectly on Ubuntu machine. I copied the username.cache file to /home/pi/.kodi/userdata/addon_data/plugin.audio.spotify directory from the Ubuntu machine.

Now when launching Spotify I get a "Login Error" message box which was/is different than the original message in Kodi which said an error occurred check the log files. Now it is more like a "natural"/expected type of error box.

However, in the kodi.log file, it is still just repeatedly outputting waiting for authentication token and never getting past that and finishing up with the same Oauth error.

I am running Kodi 17.1 with Raspbian Jessie and have tried the Spotify plugin 1.0.25 and the "beta" 1.0.26 with same results.
Reply
Ok, I finally figured this out.

The problem is because I use Kodi profiles. When using profiles, the cache file needs to go into the .kodi/profiles/<profilename>/userdata/addon_data/plugin.audio.spotify folder. Depending on how many profiles you have, you may need to copy the file into multiple places.
Reply
I have a confusing crash issue when using this addon. I'm not entirely sure that the actual Spotify addon is the cause though. But I'm hoping someone have a clue.

At first it seems to play well for awhile, but at some point after a buch of songs have been playing a screen containg lyrics and a spectrum analyzer etc gets activated. It plays for awhile and then Kodi crashes. I'm not sure wich addons is involved, but I have CU Lyrics and the standard Spectrum visualization activated.

Also why and what actives this screen? I have no idea of how to bring it up manually.

Any help would be appreciated Smile

I'm using an Android ARM tv-box with Jarvis.
Reply
I also wish for the "Shuffle" function in my Playlists. Is that possible?
Reply
(2017-04-21, 04:10)jurialmunkey Wrote: @eddiewould -- I was wondering if there is any possibility of implementing the thumbs up/down feature that is used to improve the song radio? I'm really interested in doing some skin integration into the music osd that would add a button with a menu that could do: Thumb Up, Thumb Down, Save to Collection, Follow Artist, Show Artist Top Tracks, Show All Albums by Artist.

The way I'm invoking the Spotify recommendations API currently for this is very dumb and needs improvement badly. Basically:

The first time, we ask for (100 - the maximum) recommendations based on the track the user selects. We then play through those recommendations.

When we're getting low on recommendations, we take the first 5 of the remaining recommendations (which the user hasn't even listened to yet!) and ask for more recommendations based on those (Spotify allows a maximum of 5 seed tracks).

Obviously it's not ideal (it might well end up in a feedback cycle of sorts).

We could respond to a "thumbs down" button (or skipping the track before it finishes?) by ensuring the track isn't used for future recommendations.
We could respond to a "thumbs up" button (if we had one) by using the track preferentially when asking for recommendations the next time round.

Regardless, it probably needs to do something clever with respect to ageing when asking for the next lot of recommendations to avoid a feedback cycle.
Reply
Wasn't able to find this anywhere when looking for it, is there a shuffle function for playing albums or playlists?
AMD Ryzen 5 2700 | Asus ROG Strix B350 ITX | Geforce RTX 2060 
Ubuntu 22.04 LTS | Kernel 6.1 | Nvidia blob drivers | Kodi v20
Reply
(2017-04-29, 11:33)Juppstein Wrote: Wasn't able to find this anywhere when looking for it, is there a shuffle function for playing albums or playlists?
Kodi has a built in shuffle function -- the spotify plugin adds songs to the Kodi now playing playlist just like any other media, so all the normal Kodi controls should work fine - shuffle, repeat etc.
Arctic Fuse - Alpha now available. Support me on Ko-fi.
Reply
(2017-04-23, 15:54)eddiewould Wrote:
(2017-04-21, 04:10)jurialmunkey Wrote: @eddiewould -- I was wondering if there is any possibility of implementing the thumbs up/down feature that is used to improve the song radio? I'm really interested in doing some skin integration into the music osd that would add a button with a menu that could do: Thumb Up, Thumb Down, Save to Collection, Follow Artist, Show Artist Top Tracks, Show All Albums by Artist.

The way I'm invoking the Spotify recommendations API currently for this is very dumb and needs improvement badly. Basically:

The first time, we ask for (100 - the maximum) recommendations based on the track the user selects. We then play through those recommendations.

When we're getting low on recommendations, we take the first 5 of the remaining recommendations (which the user hasn't even listened to yet!) and ask for more recommendations based on those (Spotify allows a maximum of 5 seed tracks).

Obviously it's not ideal (it might well end up in a feedback cycle of sorts).

We could respond to a "thumbs down" button (or skipping the track before it finishes?) by ensuring the track isn't used for future recommendations.
We could respond to a "thumbs up" button (if we had one) by using the track preferentially when asking for recommendations the next time round.

Regardless, it probably needs to do something clever with respect to ageing when asking for the next lot of recommendations to avoid a feedback cycle.

Make sense. I had initially thought that maybe the Spotify API might expose the recommendations in the same way as song radio works in the app so it would simply be a matter of sending a thumbs up/down command through the API -- but I guess more work is done on the App side of things than I had thought. It's not that big a deal, was just thinking if it was something exposed in a simple way then it would be great to actually integrate it on the skin side of things -- I'm just glad song radio works now as this is one of my favourite spotify features.
Arctic Fuse - Alpha now available. Support me on Ko-fi.
Reply
Tried it today for the first time and does not want to work!

Made the authentification process that seems to work

Then I keep getting the same thing:

1-an error notification that tells me to check log, here is the error:

Code:
18:09:12.635 T:5236  NOTICE: Spotify --> Your platform (x86_64 System.Platform.Windows)
18:09:12.640 T:5236   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.OSError'>
                                            Error Contents: Cannot run in that environment (os: nt; arch: 64)
                                            Traceback (most recent call last):
                                              File "C:\Users\Cardo\AppData\Roaming\Kodi\addons\plugin.audio.spotify\spotifyservice.py", line 3, in <module>
                                                import resources.playbackservice as service
                                              File "C:\Users\Cardo\AppData\Roaming\Kodi\addons\plugin.audio.spotify\resources\playbackservice.py", line 11, in <module>
                                                from spotify import MainLoop, ConnectionState, ErrorType, Bitrate, link
                                              File "C:\Users\Cardo\AppData\Roaming\Kodi\addons\plugin.audio.spotify\resources/libs\spotify\__init__.py", line 10, in <module>
                                                import _spotify
                                              File "C:\Users\Cardo\AppData\Roaming\Kodi\addons\plugin.audio.spotify\resources/libs\_spotify\__init__.py", line 42, in <module>
                                                (os.name, voidp_size)
                                            OSError: Cannot run in that environment (os: nt; arch: 64)
                                            -->End of Python script error report<--

2- an "error login" window

3- another error notification that tells me to check the log, here is the error:

Code:
18:10:10.837 T:6996  NOTICE: Spotify --> Your platform (x86_64 System.Platform.Windows)
18:10:10.859 T:7912  NOTICE: Previous line repeats 1 times.
18:10:10.859 T:7912   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.OSError'>
                                            Error Contents: Cannot run in that environment (os: nt; arch: 64)
                                            Traceback (most recent call last):
                                              File "C:\Users\Cardo\AppData\Roaming\Kodi\addons\plugin.audio.spotify\spotifyservice.py", line 3, in <module>
                                                import resources.playbackservice as service
                                              File "C:\Users\Cardo\AppData\Roaming\Kodi\addons\plugin.audio.spotify\resources\playbackservice.py", line 11, in <module>
                                                from spotify import MainLoop, ConnectionState, ErrorType, Bitrate, link
                                              File "C:\Users\Cardo\AppData\Roaming\Kodi\addons\plugin.audio.spotify\resources/libs\spotify\__init__.py", line 10, in <module>
                                                import _spotify
                                              File "C:\Users\Cardo\AppData\Roaming\Kodi\addons\plugin.audio.spotify\resources/libs\_spotify\__init__.py", line 42, in <module>
                                                (os.name, voidp_size)
                                            OSError: Cannot run in that environment (os: nt; arch: 64)
                                            -->End of Python script error report<--

Here is the full log if it could help: https://pastebin.com/S0KabBPN
Moanbag is in da place!
Reply
Kodi crashes at the OSD screen after a couple of minutes.

I'm running Jarvis on an Android TV-box.
Reply
I was able to successfully login and view my songs and playlists, but when I try to play a song it doesnt play and shows an error that says "One or more items failed to play. Check the log for more information about this message."

Here is the log:

Code:
18:56:48.112 T:8124   ERROR: CCurlFile::Stat - Failed: Couldn't connect to server(7) for http://127.0.0.1:8090/track/0DoAyYotSRtjt01pMMMUfH.wav?idx=1|x-csrf-token=[redacted]&User-Agent=Spotify%2F1.0.26+%28XBMC%2F17.0-RC3+Git%3A20170111-4d93228-dirty%29
18:56:58.113 T:8124   ERROR: CCurlFile::FillBuffer - Failed: Timeout was reached(28)
18:56:58.113 T:8124   ERROR: CCurlFile::Open failed with code 0 for http://127.0.0.1:8090/track/0DoAyYotSRtjt01pMMMUfH.wav?idx=1|x-csrf-token=[redacted]&User-Agent=Spotify%2F1.0.26+%28XBMC%2F17.0-RC3+Git%3A20170111-4d93228-dirty%29
18:56:58.113 T:8124   ERROR: XFILE::CFileCache::Open - failed to open source <http://127.0.0.1:8090/track/0DoAyYotSRtjt01pMMMUfH.wav?idx=1|x-csrf-token=[redacted]&User-Agent=Spotify%2F1.0.26+%28XBMC%2F17.0-RC3+Git%3A20170111-4d93228-dirty%29>
18:56:58.113 T:8124   ERROR: VideoPlayerCodec::Init: Error opening file http://127.0.0.1:8090/track/0DoAyYotSRtjt01pMMMUfH.wav?idx=1|x-csrf-token=[redacted]&User-Agent=Spotify%2F1.0.26+%28XBMC%2F17.0-RC3+Git%3A20170111-4d93228-dirty%29
18:57:08.112 T:8124   ERROR: CCurlFile::FillBuffer - Failed: Timeout was reached(28)
18:57:08.112 T:8124   ERROR: CCurlFile::Open failed with code 0 for http://127.0.0.1:8090/track/0DoAyYotSRtjt01pMMMUfH.wav?idx=1|x-csrf-token=[redacted]&User-Agent=Spotify%2F1.0.26+%28XBMC%2F17.0-RC3+Git%3A20170111-4d93228-dirty%29
18:57:08.112 T:8124   ERROR: XFILE::CFileCache::Open - failed to open source <http://127.0.0.1:8090/track/0DoAyYotSRtjt01pMMMUfH.wav?idx=1|x-csrf-token=[redacted]&User-Agent=Spotify%2F1.0.26+%28XBMC%2F17.0-RC3+Git%3A20170111-4d93228-dirty%29>
18:57:08.112 T:8124   ERROR: VideoPlayerCodec::Init: Error opening file http://127.0.0.1:8090/track/0DoAyYotSRtjt01pMMMUfH.wav?idx=1|x-csrf-token=[redacted]&User-Agent=Spotify%2F1.0.26+%28XBMC%2F17.0-RC3+Git%3A20170111-4d93228-dirty%29
18:57:08.112 T:8124   ERROR: CAudioDecoder: Unable to Init Codec while loading file http://127.0.0.1:8090/track/0DoAyYotSRtjt01pMMMUfH.wav?idx=1|x-csrf-token=[redacted]&User-Agent=Spotify%2F1.0.26+%28XBMC%2F17.0-RC3+Git%3A20170111-4d93228-dirty%29
18:57:08.112 T:8124 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
18:57:08.112 T:8124   ERROR: Playlist Player: skipping unplayable item: 0, path [http://127.0.0.1:8090/track/0DoAyYotSRtjt01pMMMUfH.wav?idx=1|x-csrf-token=[redacted]&User-Agent=Spotify%2F1.0.26+%28XBMC%2F17.0-RC3+Git%3A20170111-4d93228-dirty%29]

Edit: Works after restart.

Does anyone know how to get the currently playing album as a fanart background for the home screen?
Reply
Hi

Did a clean install on my old mac mini. On Kodi 15 it worked but now on Jarvis i'm getting a login error: 0 message.
Code:
20:37:33 T:140585176344320  NOTICE: Spotify --> Your platform (x86_64 System.Platform.Linux)
20:37:34 T:140585176344320  NOTICE: Spotify --> Starting background service...
20:37:34 T:140585176344320  NOTICE: Spotify --> Checking remembered_user ..
20:37:34 T:140585394489088  NOTICE: Spotify --> logged in: 0
20:37:39 T:140585176344320  NOTICE: Spotify --> starting proxy at port 8090
20:37:39 T:140585176344320  NOTICE: Spotify --> Setting callback ..
20:37:39 T:140585176344320  NOTICE: Spotify --> Obtaining user token ..
20:37:39 T:140585176344320  NOTICE: Spotify --> Encoding header ..
20:37:39 T:140585369310976   ERROR: warning:couldn't read token from cache
20:37:39 T:140585369310976  NOTICE: Spotify --> WebService - start helper webservice on port 52308
20:37:41 T:140585369310976  NOTICE: Spotify --> Launching browser: autodetect
20:37:41 T:140585369310976  NOTICE: Spotify --> Waiting for authentication token...
20:38:54 T:140587910002752  NOTICE: Previous line repeats 71 times.
20:38:54 T:140587910002752  NOTICE: Samba is idle. Closing the remaining connections
20:38:54 T:140585369310976  NOTICE: Spotify --> Waiting for authentication token...
20:39:43 T:140585369310976  NOTICE: Previous line repeats 48 times.
20:39:43 T:140585369310976  NOTICE: Spotify --> WebService - stop called
20:39:43 T:140585251878656   ERROR: 127.0.0.1 - - [09/May/2017 20:39:43] "QUIT / HTTP/1.1" 200 -
20:40:46 T:140586661164800   ERROR: Unable to find plugin
20:40:46 T:140587910002752   ERROR: GetDirectory - Error getting plugin://
20:40:46 T:140587910002752   ERROR: CGUIMediaWindow::GetDirectory(plugin://) failed
20:40:51 T:140585218307840   ERROR: warning:couldn't read token from cache
20:40:51 T:140585218307840  NOTICE: Spotify --> WebService - start helper webservice on port 52308
20:40:53 T:140585218307840  NOTICE: Spotify --> Launching browser: autodetect
20:40:53 T:140585218307840  NOTICE: Spotify --> Waiting for authentication token...
20:40:55 T:140587910002752  NOTICE: Previous line repeats 2 times.
20:40:55 T:140587910002752   ERROR: GetDirectory - Error getting plugin://plugin.audio.spotify/
20:40:55 T:140587910002752   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.spotify/) failed
20:40:56 T:140585218307840  NOTICE: Spotify --> Waiting for authentication token...
20:40:56 T:140585176344320  NOTICE: Spotify --> Shutdown requested!
20:40:56 T:140585176344320  NOTICE: Spotify --> Shutting down background processing...
20:40:56 T:140585176344320  NOTICE: Spotify --> Clearing stream / stopping ..
20:40:56 T:140585176344320  NOTICE: Spotify --> Logging out ..
20:40:56 T:140585394489088  NOTICE: Spotify --> logged out
20:40:56 T:140585176344320  NOTICE: Spotify --> Background service stopped
20:40:57 T:140585218307840  NOTICE: Spotify --> Waiting for authentication token...
20:41:01 T:140586224973568  NOTICE: Previous line repeats 4 times.
20:41:01 T:140586224973568   ERROR: CPythonInvoker(14, /storage/.kodi/addons/plugin.audio.spotify/plugin.py): script didn't stop in 5 seconds - let's kill it
20:41:01 T:140587910002752   ERROR: Unable to activate the previous window
20:41:02 T:140585218307840  NOTICE: Spotify --> Waiting for authentication token...
20:42:44 T:140587910002752   ERROR: Control 550 in window 10502 has been asked to focus, but it can't
20:42:44 T:140586224973568   ERROR: warning:couldn't read token from cache
20:42:44 T:140586224973568  NOTICE: Spotify --> WebService - start helper webservice on port 52308
20:42:44 T:140585260271360  NOTICE: Spotify --> WebServer exception occurred [Errno 98] Address already in use
20:42:46 T:140586224973568  NOTICE: Spotify --> Launching browser /storage/.kodi/addons/browser.chromium-browser/bin/chromium
20:42:46 T:140586224973568  NOTICE: Spotify --> Waiting for authentication token...
20:44:47 T:140586224973568  NOTICE: Previous line repeats 120 times.
20:44:47 T:140586224973568  NOTICE: Spotify --> WebService - stop called
20:44:47 T:140586224973568  NOTICE: Spotify --> WebServer exception occurred [Errno 104] Connection reset by peer

What do I need to change to get this working?
Mac Mini 2,3 | Openelec | Marantz SR-5006 | 2x Monitor Audio Radius 90 | REL T5 Subwoofer | Synology DS213 |
Zotac Zbox ID41 | Openelec | Marantz SR-5003 | 2x Mordaunt Short Genie

Image
Reply
Perhaps a recent API change (at Spotify server end) broke the plugin?

The plugin just stopped working for me, too, sometime during the last few weeks (I don't use it regularly). Haven't investigated further (such as: what is in the logs etc.).
Reply
(2017-05-14, 17:16)Wild Penguin Wrote: Perhaps a recent API change (at Spotify server end) broke the plugin?

The plugin just stopped working for me, too, sometime during the last few weeks (I don't use it regularly). Haven't investigated further (such as: what is in the logs etc.).

Not that I'm aware of. Can you share the log?



Verzonden vanaf mijn iPhone met Tapatalk
Reply
Hi Marcel,

This is what I get in the log trying to use Spotify plugin (ignore the first lines, they are caused by another PVR plugin).

Code:
20:05:30.839 T:2842686368 WARNING: CreateLoader - unsupported protocol(pvr) in pvr://channels/tv/Kaikki kanavat/pvr.hts_1154212838.tbn
20:05:30.840 T:2842686368 WARNING: CreateLoader - unsupported protocol(pvr) in pvr://channels/tv/Kaikki kanavat/pvr.hts_1862376869.tbn
20:05:30.841 T:2842686368 WARNING: CreateLoader - unsupported protocol(pvr) in pvr://channels/tv/Kaikki kanavat/pvr.hts_149394382.tbn
20:05:30.842 T:2842686368 WARNING: CreateLoader - unsupported protocol(pvr) in pvr://channels/tv/Kaikki kanavat/pvr.hts_1103753277.tbn
20:05:35.767 T:2948588448   ERROR: GetDirectory - Error getting
20:05:37.639 T:2591028128   ERROR: Previous line repeats 3 times.
20:05:37.640 T:2591028128  NOTICE: Spotify --> Your platform (armv7 System.Platform.Linux)
20:05:39.663 T:2591028128  NOTICE: Spotify --> Starting background service...
20:05:39.793 T:2591028128  NOTICE: Spotify --> Checking remembered_user ..
20:05:39.804 T:2591028128  NOTICE: Spotify --> Cached session found
20:05:39.819 T:2579469216  NOTICE: Spotify --> logged in: 0
20:05:45.101 T:2591028128  NOTICE: Spotify --> starting proxy at port 8090
20:05:45.103 T:2591028128  NOTICE: Spotify --> Setting callback ..
20:05:45.105 T:2591028128  NOTICE: Spotify --> Obtaining user token ..
20:05:45.106 T:2591028128  NOTICE: Spotify --> Encoding header ..
20:05:45.317 T:2600567712   ERROR: warning:couldn't read token from cache
20:05:45.317 T:2600567712  NOTICE: Spotify --> WebService - start helper webservice on port 52308
20:05:46.359 T:2600567712   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.AttributeError'>
                                            Error Contents: 'module' object has no attribute 'Dialog'
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.audio.spotify/plugin.py", line 3, in <module>
                                                Main().main()
                                              File "/storage/.kodi/addons/plugin.audio.spotify/resources/plugincontent.py", line 1146, in main
                                                if self.checkLoginDetails():
                                              File "/storage/.kodi/addons/plugin.audio.spotify/resources/plugincontent.py", line 1074, in checkLoginDetails
                                                self.token = util.prompt_for_user_token(username)
                                              File "/storage/.kodi/addons/plugin.audio.spotify/resources/libs/spotipy/util.py", line 69, in prompt_for_user_token
                                                if xbmc.Dialog().yesno("No webbrowser detected", "The webbrowser could not be auto detected. Do you have one installed ?"):
                                            AttributeError: 'module' object has no attribute 'Dialog'
                                            -->End of Python script error report<--

This is on Kodi 17.2 (LibreELEC). I have made authentication previously without any error messages.

The behaviour of the UI is: wheneven I try to open the plugin, it will display the "busy" animation (two concentric non-continuous circles rotating on the default skin), and a generic error (look in the logs for more information). It will display the busy animation indefinitely - I've waited 30minutes right now.

I was assuming there is something wrong because of other recent reports above, but my log file seems similar to only Gracus's report.
Reply
  • 1
  • 49
  • 50
  • 51(current)
  • 52
  • 53
  • 131

Logout Mark Read Team Forum Stats Members Help
Spotify for Kodi17