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 - ArthurJam - 2016-05-28

Hi Sagrath,
Try to uninstall the plugin and delete the folder addon_data\plugin.audio.spotify in your userdata.
Then reinstall the last spotify plugin and renew your account association.
Do you have specials chars in your login or password ?


RE: Spotify for Kodi - sagrath - 2016-05-28

I´m already did this 20 times, deleted everything about spotify, reinstaled, renew account association, and start fresh..
Put my login: [email protected]
and my pass: ********** (only numbers and letters)

wait for some seconds.... BAD LOGIN OR USERNAME


RE: Spotify for Kodi - ArthurJam - 2016-05-28

(2016-05-28, 17:23)Jönke Wrote: You need a webbrowser ! Read page 1 for workaround

Yes, i installed a browser but i think it is not compatible.
So I just force my account with a copy of the account file (bring from another kodi installation).
It works, I can browse my music.
But i cant play any song. Apparently, the plugin can't connect to the spotify proxy.

Code:
17:22:10 1029.895264 T:1962397696   DEBUG: Loading settings for http://127.0.0.1:8080/track/4QtEEgGcfdIDwQze15E0Pe.wav?idx=0|X-Spotify-Token=62fead89a40bee8c919e7c7d4c5cc4cf8f4aee5b&User-Agent=Spotify%2F1.0.17+%28XBMC%2F17.0-ALPHA2+Git%3Ae18bd8d%29
17:22:10 1029.900757 T:1962397696   DEBUG: CPlayerCoreFactory::GetPlayers(http://127.0.0.1:8080/track/4QtEEgGcfdIDwQze15E0Pe.wav?idx=0|X-Spotify-Token=62fead89a40bee8c919e7c7d4c5cc4cf8f4aee5b&User-Agent=Spotify%2F1.0.17+%28XBMC%2F17.0-ALPHA2+Git%3Ae18bd8d%29)
17:22:10 1029.901001 T:1962397696   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: system rules
17:22:10 1029.901245 T:1962397696   DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: system rules
17:22:10 1029.901367 T:1962397696   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: mms/udp
17:22:10 1029.901855 T:1962397696   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout
17:22:10 1029.902222 T:1962397696   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtmp
17:22:10 1029.902588 T:1962397696   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtsp
17:22:10 1029.902954 T:1962397696   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: streams
17:22:10 1029.903442 T:1962397696   DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: streams
17:22:10 1029.903564 T:1962397696   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: aacp/sdp
17:22:10 1029.903809 T:1962397696   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: mp2
17:22:10 1029.904175 T:1962397696   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvd
17:22:10 1029.904297 T:1962397696   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdimage
17:22:10 1029.904663 T:1962397696   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf
17:22:10 1029.904907 T:1962397696   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: nsv
17:22:10 1029.905273 T:1962397696   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: radio
17:22:10 1029.905396 T:1962390432   DEBUG: CAnnouncementManager - Announcement: OnAdd from xbmc
17:22:10 1029.905640 T:1962390432   DEBUG: GOT ANNOUNCEMENT, type: 2, from xbmc, message OnAdd
17:22:10 1029.905640 T:1962397696   DEBUG: CPlayerCoreFactory::GetPlayers: matched 0 rules with players
17:22:10 1029.905762 T:1962397696   DEBUG: CPlayerCoreFactory::GetPlayers: adding audiodefaultplayer (PAPlayer)
17:22:10 1029.905884 T:1962397696   DEBUG: CPlayerCoreFactory::GetPlayers: for video=0, audio=1
17:22:10 1029.906006 T:1962397696   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
17:22:10 1029.906006 T:1962397696   DEBUG: CPlayerCoreFactory::GetPlayers: adding player: VideoPlayer
17:22:10 1029.906128 T:1962397696   DEBUG: CPlayerCoreFactory::GetPlayers: added 2 players
17:22:10 1029.908325 T:1962397696    INFO: easy_aquire - Created session to http://127.0.0.1
17:22:10 1029.910767 T:1962397696   ERROR: CCurlFile::Stat - Failed: Couldn't connect to server(7) for http://127.0.0.1:8080/track/4QtEEgGcfdIDwQze15E0Pe.wav?idx=0|X-Spotify-Token=62fead89a40bee8c919e7c7d4c5cc4cf8f4aee5b&User-Agent=Spotify%2F1.0.17+%28XBMC%2F17.0-ALPHA2+Git%3Ae18bd8d%29
17:22:10 1029.911011 T:1962397696   DEBUG: CCurlFile::GetMimeType - http://127.0.0.1:8080/track/4QtEEgGcfdIDwQze15E0Pe.wav?idx=0|X-Spotify-Token=62fead89a40bee8c919e7c7d4c5cc4cf8f4aee5b&User-Agent=Spotify%2F1.0.17+%28XBMC%2F17.0-ALPHA2+Git%3Ae18bd8d%29 -> failed
17:22:10 1029.913940 T:1962397696   DEBUG: CFileCache::Open - opening <track/4QtEEgGcfdIDwQze15E0Pe.wav> using cache
17:22:10 1029.915283 T:1962397696   DEBUG: CurlFile::Open(0x4045548) http://127.0.0.1:8080/track/4QtEEgGcfdIDwQze15E0Pe.wav?idx=0
17:22:10 1029.917725 T:1962390432   DEBUG: CAnnouncementManager - Announcement: OnAdd from xbmc
17:22:10 1029.917969 T:1962390432   DEBUG: GOT ANNOUNCEMENT, type: 2, from xbmc, message OnAdd
17:22:10 1029.928833 T:1962390432   DEBUG: CAnnouncementManager - Announcement: OnAdd from xbmc
17:22:10 1029.929199 T:1962390432   DEBUG: GOT ANNOUNCEMENT, type: 2, from xbmc, message OnAdd
17:22:10 1029.939331 T:1962390432   DEBUG: CAnnouncementManager - Announcement: OnAdd from xbmc
17:22:10 1029.939575 T:1962390432   DEBUG: GOT ANNOUNCEMENT, type: 2, from xbmc, message OnAdd
17:22:10 1029.949829 T:1962390432   DEBUG: CAnnouncementManager - Announcement: OnAdd from xbmc
17:22:10 1029.950073 T:1962390432   DEBUG: GOT ANNOUNCEMENT, type: 2, from xbmc, message OnAdd
17:22:10 1029.952271 T:1962397696   ERROR: CCurlFile::FillBuffer - Failed: Couldn't connect to server(7)
17:22:10 1029.952393 T:1962397696   ERROR: CCurlFile::Open failed with code 0 for http://127.0.0.1:8080/track/4QtEEgGcfdIDwQze15E0Pe.wav?idx=0|X-Spotify-Token=62fead89a40bee8c919e7c7d4c5cc4cf8f4aee5b&User-Agent=Spotify%2F1.0.17+%28XBMC%2F17.0-ALPHA2+Git%3Ae18bd8d%29
17:22:10 1029.952637 T:1962397696   ERROR: Open - failed to open source <http://127.0.0.1:8080/track/4QtEEgGcfdIDwQze15E0Pe.wav?idx=0|X-Spotify-Token=62fead89a40bee8c919e7c7d4c5cc4cf8f4aee5b&User-Agent=Spotify%2F1.0.17+%28XBMC%2F17.0-ALPHA2+Git%3Ae18bd8d%29>
17:22:10 1029.952881 T:1962397696   ERROR: Init: Error opening file http://127.0.0.1:8080/track/4QtEEgGcfdIDwQze15E0Pe.wav?idx=0|X-Spotify-Token=62fead89a40bee8c919e7c7d4c5cc4cf8f4aee5b&User-Agent=Spotify%2F1.0.17+%28XBMC%2F17.0-ALPHA2+Git%3Ae18bd8d%29
17:22:10 1029.960571 T:1962390432   DEBUG: CAnnouncementManager - Announcement: OnAdd from xbmc
17:22:10 1029.960815 T:1962390432   DEBUG: GOT ANNOUNCEMENT, type: 2, from xbmc, message OnAdd
17:22:10 1029.970947 T:1962390432   DEBUG: CAnnouncementManager - Announcement: OnAdd from xbmc
17:22:10 1029.971191 T:1962390432   DEBUG: GOT ANNOUNCEMENT, type: 2, from xbmc, message OnAdd
17:22:10 1029.981323 T:1962390432   DEBUG: CAnnouncementManager - Announcement: OnAdd from xbmc
17:22:10 1029.981567 T:1962390432   DEBUG: GOT ANNOUNCEMENT, type: 2, from xbmc, message OnAdd
17:22:10 1029.986816 T:1962397696   ERROR: CCurlFile::Stat - Failed: Couldn't connect to server(7) for http://127.0.0.1:8080/track/4QtEEgGcfdIDwQze15E0Pe.wav?idx=0|X-Spotify-Token=62fead89a40bee8c919e7c7d4c5cc4cf8f4aee5b&User-Agent=Spotify%2F1.0.17+%28XBMC%2F17.0-ALPHA2+Git%3Ae18bd8d%29
17:22:10 1029.987061 T:1962397696   DEBUG: CCurlFile::GetMimeType - http://127.0.0.1:8080/track/4QtEEgGcfdIDwQze15E0Pe.wav?idx=0|X-Spotify-Token=62fead89a40bee8c919e7c7d4c5cc4cf8f4aee5b&User-Agent=Spotify%2F1.0.17+%28XBMC%2F17.0-ALPHA2+Git%3Ae18bd8d%29 -> failed
17:22:10 1029.989014 T:1962397696   DEBUG: CFileCache::Open - opening <track/4QtEEgGcfdIDwQze15E0Pe.wav> using cache
17:22:10 1029.989990 T:1962397696   DEBUG: CurlFile::Open(0x4015d48) http://127.0.0.1:8080/track/4QtEEgGcfdIDwQze15E0Pe.wav?idx=0
17:22:10 1029.992188 T:1962390432   DEBUG: CAnnouncementManager - Announcement: OnAdd from xbmc
17:22:10 1029.992432 T:1962390432   DEBUG: GOT ANNOUNCEMENT, type: 2, from xbmc, message OnAdd
17:22:10 1030.001099 T:1962397696   ERROR: CCurlFile::FillBuffer - Failed: Couldn't connect to server(7)
17:22:10 1030.001343 T:1962397696   ERROR: CCurlFile::Open failed with code 0 for http://127.0.0.1:8080/track/4QtEEgGcfdIDwQze15E0Pe.wav?idx=0|X-Spotify-Token=62fead89a40bee8c919e7c7d4c5cc4cf8f4aee5b&User-Agent=Spotify%2F1.0.17+%28XBMC%2F17.0-ALPHA2+Git%3Ae18bd8d%29
17:22:10 1030.001465 T:1962397696   ERROR: Open - failed to open source <http://127.0.0.1:8080/track/4QtEEgGcfdIDwQze15E0Pe.wav?idx=0|X-Spotify-Token=62fead89a40bee8c919e7c7d4c5cc4cf8f4aee5b&User-Agent=Spotify%2F1.0.17+%28XBMC%2F17.0-ALPHA2+Git%3Ae18bd8d%29>
17:22:10 1030.001709 T:1962397696   ERROR: Init: Error opening file http://127.0.0.1:8080/track/4QtEEgGcfdIDwQze15E0Pe.wav?idx=0|X-Spotify-Token=62fead89a40bee8c919e7c7d4c5cc4cf8f4aee5b&User-Agent=Spotify%2F1.0.17+%28XBMC%2F17.0-ALPHA2+Git%3Ae18bd8d%29
17:22:10 1030.001831 T:1962397696   ERROR: CAudioDecoder: Unable to Init Codec while loading file http://127.0.0.1:8080/track/4QtEEgGcfdIDwQze15E0Pe.wav?idx=0|X-Spotify-Token=62fead89a40bee8c919e7c7d4c5cc4cf8f4aee5b&User-Agent=Spotify%2F1.0.17+%28XBMC%2F17.0-ALPHA2+Git%3Ae18bd8d%29
17:22:10 1030.002075 T:1962397696 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
17:22:10 1030.002197 T:1962397696   DEBUG: OnQueueNextItem: play state was 1, starting 1
17:22:10 1030.002441 T:1962397696   ERROR: Playlist Player: skipping unplayable item: 0, path [http://127.0.0.1:8080/track/4QtEEgGcfdIDwQze15E0Pe.wav?idx=0|X-Spotify-Token=62fead89a40bee8c919e7c7d4c5cc4cf8f4aee5b&User-Agent=Spotify%2F1.0.17+%28XBMC%2F17.0-ALPHA2+Git%3Ae18bd8d%29]
17:22:10 1030.002563 T:1962397696   DEBUG: Playlist Player: one or more items failed to play... aborting playback



RE: Spotify for Kodi - Jönke - 2016-05-28

(2016-05-28, 17:35)sagrath Wrote: I´m already did this 20 times, deleted everything about spotify, reinstaled, renew account association, and start fresh..
Put my login: [email protected]
and my pass: ********** (only numbers and letters)

wait for some seconds.... BAD LOGIN OR USERNAME

-Uninstall addon
- close kodi
-Delete addon in userdata folder
-Delete webinformation in webbrowser
-close browser
-open browser
-start kodi
-install and set up Spotify
- start addon , wait for webbrowser ok


RE: Spotify for Kodi - sagrath - 2016-05-28

Did it, working, but just working when I use my 12158436811 login, if I use my facebook login [email protected] don't work
My pass to 12158436811 is M*******83
And my pass to [email protected] is B****60

the account is the same. But with my facebook login does't work.

It's is normal?

Update:

So, the addon is working, I can get my musics and my playlists, BUT, whn I hit enter, the addon shows the message "loading" and after some seconds, shows "one or more itens failed, check the log for more info about this message"

The music don´t play

here the log

http://pastebin.com/hBqws3LR

Using Krypton 17.0


RE: Spotify for Kodi - debutanker - 2016-05-29

Hi,
got the same problems like @sagrath using LibreELEC 8.0 x64 testbuild.
Pushing "enter" ends in error message but it works with context menu and the "play using PAPlayer " option!


RE: Spotify for Kodi - sagrath - 2016-05-29

(2016-05-29, 13:15)debutanker Wrote: Hi,
got the same problems like @sagrath using LibreELEC 8.0 x64 testbuild.
Pushing "enter" ends in error message but it works with context menu and the "play using PAPlayer " option!

Following your situation, for me works the other way , from the context menu I select "play with" and select VideoPlayer , if I use PAPlayer , I get the error I mentioned in my last post .

I use Windows 10 and Krypton 17.0


RE: Spotify for Kodi - icebaer - 2016-05-29

Hi,

which bitrate will be used for streaming?
Is it possible to change bitrates?


RE: Spotify for Kodi - joaton - 2016-05-30

Hello, I am attempting to use this with Release 17 Alpha 2 but am getting an error. I can log in and everything and see my playlist, etc. But when I go to open a playlist, or to a point where it should list the songs I get an error. I have included the relevant portions of the log file below. Thanks for all your work on this, as it looks to be an awesome add on.

Code:
10:12:45 T:5832  NOTICE: Spotify --> Your platform (x86_64 System.Platform.Windows)
10:12:45 T:5832  NOTICE: Spotify --> Starting background service...
10:12:45 T:5832  NOTICE: Spotify --> Cached session found
10:12:45 T:2252  NOTICE: Spotify --> logged in: 0
10:12:46 T:4252   ERROR: None
10:12:50 T:5832   ERROR: Previous line repeats 3 times.
10:12:50 T:5832  NOTICE: Spotify --> starting proxy at port 8080
10:12:56 T:4220   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: 'NoneType' object has no attribute 'get'
                                            Traceback (most recent call last):
                                              File "C:\Users\HTPC\AppData\Roaming\Kodi\addons\plugin.audio.spotify\plugin.py", line 3, in <module>
                                                Main().main()
                                              File "C:\Users\HTPC\AppData\Roaming\Kodi\addons\plugin.audio.spotify\resources\plugincontent.py", line 1067, in main
                                                self.precacheAllitems()
                                              File "C:\Users\HTPC\AppData\Roaming\Kodi\addons\plugin.audio.spotify\resources\plugincontent.py", line 1081, in precacheAllitems
                                                self.get_playlist(playlist['owner']['id'],playlist["id"])
                                              File "C:\Users\HTPC\AppData\Roaming\Kodi\addons\plugin.audio.spotify\resources\plugincontent.py", line 262, in get_playlist
                                                playlistdetails["tracks"]["items"] = self.prepare_track_listitems(tracks=playlistdetails["tracks"]["items"],playlistdetails=playlist)
                                              File "C:\Users\HTPC\AppData\Roaming\Kodi\addons\plugin.audio.spotify\resources\plugincontent.py", line 473, in prepare_track_listitems
                                                for artist in self.get_followedartists():
                                              File "C:\Users\HTPC\AppData\Roaming\Kodi\addons\plugin.audio.spotify\resources\plugincontent.py", line 874, in get_followedartists
                                                artists = self.prepare_artist_listitems(artists['artists']['items'],isFollowed=True)
                                              File "C:\Users\HTPC\AppData\Roaming\Kodi\addons\plugin.audio.spotify\resources\plugincontent.py", line 657, in prepare_artist_listitems
                                                if item.get("artist"):
                                            AttributeError: 'NoneType' object has no attribute 'get'
                                            -->End of Python script error report<--
10:12:56 T:6116   ERROR: XFILE::CDirectory::GetDirectory - Error getting -



RE: Spotify for Kodi - marcelveldt - 2016-06-04

(2016-05-29, 14:18)sagrath Wrote: Following your situation, for me works the other way , from the context menu I select "play with" and select VideoPlayer , if I use PAPlayer , I get the error I mentioned in my last post .

I use Windows 10 and Krypton 17.0

Looks like something broke in Kodi 17... I'll try to figure out what has changed, might as well be a bug in Kodi as its still in alpha stage


RE: Spotify for Kodi - flagun - 2016-06-04

Hi is the addon seen by spotify as a "device"? So I can choose my music via my PC? If not is it possible to add such a option?


RE: Spotify for Kodi - ArthurJam - 2016-06-04

Hi,

Spotify Connect is not bundled in the official library provided by Spotify.
So i think it's not possible.

A possible alternative is to develop a kodi's plugin which use this unofficial lib : https://github.com/plietar/librespot
But i dont have the skills to make this.

PS : https://github.com/sashahilton00/spotify-connect-resources
Some additionnals informations can be grab here.


RE: Spotify for Kodi - debutanker - 2016-06-04

(2016-06-04, 11:04)marcelveldt Wrote: Looks like something broke in Kodi 17... I'll try to figure out what has changed, might as well be a bug in Kodi as its still in alpha stage

With LE 8.0 testbuild x86 i now only use the VideoPlayer for audio with :

<advancedsettings>
<audio>
<defaultplayer>VideoPlayer</defaultplayer>
</audio>
</advancedsettings>

in the advancedsettings.xml.


RE: Spotify for Kodi - sagrath - 2016-06-04

(2016-06-04, 17:03)debutanker Wrote:
(2016-06-04, 11:04)marcelveldt Wrote: Looks like something broke in Kodi 17... I'll try to figure out what has changed, might as well be a bug in Kodi as its still in alpha stage

With LE 8.0 testbuild x86 i now only use the VideoPlayer for audio with :

<advancedsettings>
<audio>
<defaultplayer>VideoPlayer</defaultplayer>
</audio>
</advancedsettings>

in the advancedsettings.xml.

Yeah, this works for me.


RE: Spotify for Kodi - marcelveldt - 2016-06-04

(2016-05-29, 15:55)icebaer Wrote: which bitrate will be used for streaming?
Is it possible to change bitrates?

The bitrate is set to highest posible --> 320 kbits/s
Not yet possible to select the bitrate, if needed/wanted I can add it to the settings