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 - marv_el - 2016-11-16

now it works on krypton! great, thanks!


RE: Spotify for Kodi - benji791 - 2016-11-16

Hello, now it works also on Isengard. But I still have dependencies issue with : Skin helper service & the tvdb api v2. I'm not sure if it's related since they are marked from you also...

One other thing, putting playlist in cache is really very very very slow (I have a 100mb bandwith internet connection). It can take up to one minute or more for some playlist that are only 30 tracks... Do you have the same?


RE: Spotify for Kodi - effe.rnr - 2016-11-17

Hi
I just tried it on Krypton (Libreelec - Raspberry PI 2).
When I try to open the addon it is loading for about 1 minute and then an error appears.

EDIT: okay sorry, read that it isn working for rpi


Spotify for Kodi - mrpg - 2016-11-17

(2016-11-13, 14:53)ksooo Wrote: you need to restart Kodi after you modified the files.

No need to change the.pyo files btw. They are generated automatically from the.py files.


Thank you! Worked after a restart of Kodi!


Sent from my iPhone


RE: Spotify for Kodi - Hormesis - 2016-11-17

Working great for me now on LibreELEC (Krypton) v7.90.008 ALPHA. Thanks for all your awesome work, I really appreciate it!


RE: Spotify for Kodi - marcelveldt - 2016-11-17

(2016-11-16, 23:18)benji791 Wrote: Hello, now it works also on Isengard. But I still have dependencies issue with : Skin helper service & the tvdb api v2. I'm not sure if it's related since they are marked from you also...

One other thing, putting playlist in cache is really very very very slow (I have a 100mb bandwith internet connection). It can take up to one minute or more for some playlist that are only 30 tracks... Do you have the same?

1) All of my addons are going through a major cleanup/rewrite atm. Versions on Kodi repo or emby are considered stable but for now keep away from the github versions untill I finished the refactoring.

2) The Spotify addon will also be optimized once I finished the works on skinhelper, including the caching.


RE: Spotify for Kodi - benji791 - 2016-11-17

Great news ! Thanks a lot


RE: Spotify for Kodi - Jönke - 2016-11-17

Thanks ! Working on rpi now again !


RE: Spotify for Kodi - Palmdale95 - 2016-11-17

Working on pi? How? I can't connect. On other devices I have to use my Facebook account to lock in. Might that be the problem? Tried Mail, user...everything. using krypton beta 5.

Sent from my SM-T715


RE: Spotify for Kodi - Jönke - 2016-11-17

Install on pi , install on PC , set up on PC, copy files from PC to Rpi . Search this thread for more info

Not tested , but give it a go ? 2436674 (post)


RE: Spotify for Kodi - mgkday - 2016-11-18

Hi !

I am using a Pi3, with OSMC, I installed the plugin, then opened an SSH terminal, downloaded the spotify_auth.py script (https://gist.github.com/lasconic/b8e2543ecf81bbf36c0a313cec2f6674 ), launched it (not sure how secure this API is and if it collects my spotify password ?), it gave me a url that I copied on my pc browser. It redirected me to a localhost address, I copied it, and paste it in terminal, like asked. it created a ".cache-USERNAME" file. I went to /home/osmc/.kodi/addons/plugin.audio.spotify and copied it and renamed it to USERNAME.cache. Then launched the Spotify addon and got a notification "Spotify error - check the log for more information".
So I went to check kodi.log and have :

Code:
01:13:14  72.005386 T:1560007664  NOTICE: Spotify --> Your platform (armv7 System.Platform.Linux)
01:13:15  72.786575 T:1957028784   ERROR: Control 50 in window 10502 has been asked to focus, but it can't
01:13:16  73.991020 T:1560007664  NOTICE: Spotify --> Starting background service...
01:13:16  74.014717 T:1560007664  NOTICE: Spotify --> Checking remembered_user ..
01:13:16  74.020386 T:1560007664  NOTICE: Spotify --> Cached session found
01:13:16  74.028778 T:1547695088  NOTICE: Spotify --> logged in: 0
01:13:21  78.297165 T:1957028784   ERROR: Window Translator: Can't find window settingsprofile
01:13:21  78.308578 T:1560007664  NOTICE: Spotify --> starting proxy at port 8090
01:13:21  78.308861 T:1560007664  NOTICE: Spotify --> Setting callback ..
01:13:21  78.309227 T:1560007664  NOTICE: Spotify --> Obtaining user token ..
01:13:21  78.309868 T:1560007664  NOTICE: Spotify --> Encoding header ..
01:13:22  79.348282 T:1586492400   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <class 'spotipy.client.SpotifyException'>
                                            Error Contents: http status: 550, code:-1 - no credentials set
                                            Traceback (most recent call last):
                                              File "/home/osmc/.kodi/addons/plugin.audio.spotify/plugin.py", line 3, in <module>
                                                Main().main()
                                              File "/home/osmc/.kodi/addons/plugin.audio.spotify/resources/plugincontent.py", line 1146, in main
                                                if self.checkLoginDetails():
                                              File "/home/osmc/.kodi/addons/plugin.audio.spotify/resources/plugincontent.py", line 1074, in checkLoginDetails
                                                self.token = util.prompt_for_user_token(username)
                                              File "/usr/local/lib/python2.7/dist-packages/spotipy/util.py", line 47, in prompt_for_user_token
                                                raise spotipy.SpotifyException(550, -1, 'no credentials set')
                                            SpotifyException: http status: 550, code:-1 - no credentials set
                                            -->End of Python script error report<--
01:13:22  79.498375 T:1957028784   ERROR: GetDirectory - Error getting plugin://plugin.audio.spotify/
01:13:22  79.498642 T:1957028784   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.spotify/) failed
01:13:34  91.898270 T:1586492400   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <class 'spotipy.client.SpotifyException'>
                                            Error Contents: http status: 550, code:-1 - no credentials set
                                            Traceback (most recent call last):
                                              File "/home/osmc/.kodi/addons/plugin.audio.spotify/plugin.py", line 3, in <module>
                                                Main().main()
                                              File "/home/osmc/.kodi/addons/plugin.audio.spotify/resources/plugincontent.py", line 1146, in main
                                                if self.checkLoginDetails():
                                              File "/home/osmc/.kodi/addons/plugin.audio.spotify/resources/plugincontent.py", line 1074, in checkLoginDetails
                                                self.token = util.prompt_for_user_token(username)
                                              File "/usr/local/lib/python2.7/dist-packages/spotipy/util.py", line 47, in prompt_for_user_token
                                                raise spotipy.SpotifyException(550, -1, 'no credentials set')
                                            SpotifyException: http status: 550, code:-1 - no credentials set
                                            -->End of Python script error report<--
01:13:34  92.050430 T:1957028784   ERROR: GetDirectory - Error getting plugin://plugin.audio.spotify/
01:13:34  92.050690 T:1957028784   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.spotify/) failed
not sure what to do next ...


edit : I also installed Kodi on windows, installed Spotify addons, made it work. went to c:\Users\USERNAME\AppData\Roaming\Kodi\addons\plugin.audio.spotify\ and copied all that on the Pi3 into /home/osmc/.kodi/addons/plugin.audio.spotify and then launched the addon again on my Pi3, same error...

Thanks for any help !


RE: Spotify for Kodi - too_cool_3 - 2016-11-18

(2016-11-14, 23:08)too_cool_3 Wrote: I've installed Spotify for Kodi on Android and tried to play some tracks off my playlists but for some strange reason the songs only play for about 20 seconds and it starts playing the song part way through..... This is very weird, any ideas? The fact that it doesn't start playing from the beginning plus only plays part of the song has me stumped.

(2016-11-15, 16:31)markusloffler Wrote: Are you using a paid or free account?

@markusloffler I'm using a Spotify Premium account.

(2016-11-16, 01:55)marcelveldt Wrote: Did you receive a warning after startu that playback is not supported on your platform ?

@marcelveldt Yes, it did give me that warning. I'm using your add-on on a Mini M8S running Android 6.0.1 and Kodi 16 Jarvis.


RE: Spotify for Kodi - Palmdale95 - 2016-11-19

(2016-11-17, 23:24)Jönke Wrote: Install on pi , install on PC , set up on PC, copy files from PC to Rpi . Search this thread for more info

Not tested , but give it a go ? 2436674 (post)

Just tested it on a Win 10 Maschine and could not connect to Spotify on krypton either.

On Jarvis it works right away. Ab bit slow in the sections but solid.


RE: Spotify for Kodi - Jönke - 2016-11-19

Ok , no problem here on Krypton Libreelec for Rpi


RE: Spotify for Kodi - Palmdale95 - 2016-11-19

(2016-11-19, 14:03)Jönke Wrote: Ok , no problem here on Krypton Libreelec for Rpi
OK. Strange. Any special settings? For me no login possible. Either pi or pc.

Sent from my SM-T715