• 1
  • 44
  • 45
  • 46(current)
  • 47
  • 48
  • 131
Beta Spotify for Kodi
(2017-01-24, 21:43)neme5i5 Wrote: First off, thank you for building the plugin! Works great. I also had the some query as klaymen. I wrote a custom Kodi skill for Alexa and would love to be able to playback songs and playlist by calling the json api. Do you have any plans to add support for it?

Well, I'm using Alexa myself and interested in your project for the custom Kodi skill ;-)
I am indeed planning to extend the support for the addon to have some form of external control. This could be by sending api commands (json) or Kodi plugin commands.

Also some more work is set to be done on the addon regarding caching etc. I was hoping that by now we would have a new api provided by Spotify for the playback stuff but looks like we have to deal with the outdated libspotify some longer. That's a shame because getting rid of libspotify would totally cleanup the addon and stabalize it.

Anyway let me know what commands you need for the Alexa skill.
Reply
Thanks for the quick response. I was inspired to write my own kodi skill after I came across http://forum.kodi.tv/showthread.php?tid=258165. It essentially allows me to play local music ("ask kodi to play <song> by <artist>", "ask kodi to play the album <album_title>"), movies ("ask kodi to play the movie <movie_title>") and tv shows ("ask kodi to play season <season_number> episode <episode_number> of <tv_show_title>") from my kodi library by calling the appropriate json apis. It also has the ability to perform a youtube search for a video and pass along the videoid to the youtube plugin. I haven't published the skill but I'm happy to share the code if you're interested.

What I'd like to do is extend the music playback functionality to play songs off of spotify using your plugin (for example, "ask kodi to play <song> by <artist> from spotify"). I can get the trackid by using the spotify api. If I can pass along the trackid (or playlistid, albumid) via a json api call to kodi, I should be set. While browsing through your code, I noticed that you invoke the plugin for various actions, for example:

Code:
plugin://plugin.audio.spotify/?action=add_track_to_playlist&trackid=%s


If you have something similar to play a track, that would be awesome.
Reply
(2017-01-18, 20:01)Ballistic Wrote: Hi all,

This plugin has been working great for some time for me but lately i have been unable to login.

I enter my username and password, the browser starts and it shows https://accounts.spotify.com/blablabla but the page stays blank.

Anyone have any idea?

Still having the same problem. How do you guys get this working?
Reply
I'm having the issue with songs only playing for 30 seconds. There were some posts about this but I haven't found the solution.

Thanks in advance!
Reply
@koebel99 Maybe post some more info of your setup?
Reply
MXQ Pro
Kodi Jarvis
Aeon Nox
Spotify add on ... latest update installed

No problem with log in ... I can view my playlists, etc
I can also run Spotify on Android with no playback issues.
Reply
MXQ Pro
Kodi Jarvis
Aeon Nox
Spotify add on ... latest update installed

No problem with log in ... I can view my playlists, etc
I can also run Spotify on Android with no playback issues.
Reply
is this addon still be maintained?

i cant install it cause of some dependecy error...


Quote:21:50:51.287 T:139827980502784 DEBUG: GetImageHash - unable to stat url http://redirect.superrepo.org/v7/addons/...fanart.jpg
21:50:51.376 T:139828833323392 DEBUG: ------ Window Init (Pointer.xml) ------
21:50:51.582 T:139827980502784 INFO: easy_acquire - Created session to http://redirect.superrepo.org
21:50:51.893 T:139827997288192 ERROR: CCurlFile::Stat - Failed: Couldn't connect to server(7) for http://redirect.superrepo.org/v7/addons/...fanart.jpg
21:50:51.893 T:139827997288192 DEBUG: GetImageHash - unable to stat url http://redirect.superrepo.org/v7/addons/...fanart.jpg
21:50:51.993 T:139827980502784 ERROR: CCurlFile::Stat - Failed: Couldn't connect to server(7) for http://redirect.superrepo.org/v7/addons/...fanart.jpg
21:50:51.994 T:139827980502784 DEBUG: GetImageHash - unable to stat url http://redirect.superrepo.org/v7/addons/...fanart.jpg
21:50:52.663 T:139827997288192 ERROR: CCurlFile::Stat - Failed: Couldn't connect to server(7) for http://redirect.superrepo.org/v7/addons/...fanart.jpg
21:50:52.663 T:139827997288192 DEBUG: GetImageHash - unable to stat url http://redirect.superrepo.org/v7/addons/...fanart.jpg
21:50:54.073 T:139828833323392 DEBUG: ProcessMouse: trying mouse action leftclick
21:50:54.073 T:139828833323392 DEBUG: ------ Window Init (DialogAddonInfo.xml) ------
21:50:54.078 T:139828833323392 DEBUG: ------ Window Deinit (Pointer.xml) ------
21:50:54.542 T:139828833323392 DEBUG: ------ Window Init (Pointer.xml) ------
21:50:56.191 T:139828833323392 DEBUG: ProcessMouse: trying mouse action leftclick
21:50:56.192 T:139828833323392 DEBUG: ------ Window Init (DialogSelect.xml) ------
21:50:56.199 T:139828833323392 DEBUG: ------ Window Deinit (Pointer.xml) ------
21:50:56.743 T:139828833323392 DEBUG: ------ Window Init (Pointer.xml) ------
21:50:57.425 T:139828833323392 DEBUG: ProcessMouse: trying mouse action leftclick
21:50:57.425 T:139828833323392 DEBUG: ------ Window Deinit (Pointer.xml) ------
21:50:57.728 T:139828833323392 DEBUG: ------ Window Deinit (DialogSelect.xml) ------
21:50:57.778 T:139828833323392 DEBUG: CAddonInstaller: installing 'plugin.video.emby' version '2.3.40' from repository 'repository.beta.emby.kodi'
21:50:57.785 T:139827980502784 DEBUG: CFileCache::Open - opening <v7/addons/plugin.video.emby.movies/plugin.video.emby.movies-0.11.zip.md5> using cache
21:50:57.785 T:139827980502784 DEBUG: CurlFile::Open(0x7f2bfc105fa0) http://redirect.superrepo.org/v7/addons/...11.zip.md5
21:50:58.150 T:139828833323392 DEBUG: ------ Window Deinit (DialogAddonInfo.xml) ------
21:50:59.235 T:139828833323392 DEBUG: ------ Window Init (Pointer.xml) ------
21:50:59.338 T:139827980502784 DEBUG: CCurlFile::Open - effective URL: <http://embydata.com/downloads/addons/xbmb3c/kodi-beta-repo//plugin.video.emby.movies/plugin.video.emby.movies-0.11.zip.md5>
21:50:59.338 T:139828005680896 DEBUG: Thread FileCache start, auto delete: false
21:50:59.338 T:139828005680896 INFO: CFileCache:Tonguerocess - Source read didn't return any data! Hit eof(?)
21:50:59.388 T:139828005680896 DEBUG: Thread FileCache 139828005680896 terminating
21:50:59.388 T:139827980502784 ERROR: CAddonInstallJob[plugin.video.emby]: failed to install dependency plugin.video.emby.movies
21:50:59.412 T:139828833323392 DEBUG: ------ Window Init (DialogNotification.xml) ------
21:50:59.438 T:139828833323392 DEBUG: CGUIMediaWindow::GetDirectory (addons://search/emby)
21:50:59.438 T:139828833323392 DEBUG: ParentPath = [addons://search/emby]
21:50:59.439 T:139827980502784 DEBUG: Search query: SELECT addonID FROM addons WHERE name LIKE '%emby%' OR summary LIKE '%emby%' OR description LIKE '%emby%'
21:50:59.508 T:139827980502784 DEBUG: CAddonMgr::GetAvailableUpdates took 58 ms
21:50:59.513 T:139828005680896 DEBUG: Thread BackgroundLoader start, auto delete: false
21:50:59.516 T:139828005680896 DEBUG: Thread BackgroundLoader 139828005680896 terminating
21:50:59.622 T:139827997288192 ERROR: CCurlFile::Stat - Failed: Couldn't connect to server(7) for http://redirect.superrepo.org/v7/addons/...fanart.jpg
21:50:59.622 T:139827997288192 DEBUG: GetImageHash - unable to stat url http://redirect.superrepo.org/v7/addons/...fanart.jpg
21:51:05.848 T:139828833323392 DEBUG: ------ Window Deinit (DialogNotification.xml) ------
21:51:05.931 T:139828833323392 DEBUG: ------ Window Deinit (Pointer.xml) ------
Reply
Figured out how to add the Spotify Android app within Kodi ... easy enough workaround.
Reply
Hello. Thank you for creating something so wonderfull.
However, i couldn't get it to work with aarch64.
I use an Odroid C2 with Libreelec.
I used the "hack" to get auth working, but still gives the "999:"Platform not supported for playback, continuing without playback support.".
I edited the utils.py file to force aarch and linux, but still does not work.
Error log:
Quote:16:35:57.835 T:547465720032 ERROR: GetDirectory - Error getting
16:36:04.765 T:546769465568 ERROR: Previous line repeats 6 times.
16:36:11.605 T:547465720032 ERROR: GetDirectory - Error getting
16:36:12.472 T:546217042144 ERROR: Previous line repeats 3 times.
16:36:12.472 T:546217042144 NOTICE: Spotify --> Your platform (aarch64 System.Platform.Linux)
16:36:13.018 T:546217042144 NOTICE: Spotify --> Starting background service...
16:36:13.032 T:546217042144 NOTICE: Spotify --> TRACE: File "/storage/.kodi/addons/plugin.audio.spotify/spotifyservice.py", line 9, in <module>
service.main()
File "/storage/.kodi/addons/plugin.audio.spotify/resources/playbackservice.py", line 285, in main
logMsg("TRACE: " + ( ''.join(traceback.format_stack()) ) )
16:36:13.033 T:546217042144 NOTICE: Spotify --> EXCEPTION in background service: Unable to find 'libspotify'
16:36:13.034 T:546217042144 ERROR: Exception
16:36:13.035 T:546217042144 ERROR: OSError
16:36:13.035 T:546217042144 ERROR: :
16:36:13.035 T:546217042144 ERROR: OSError("Unable to find 'libspotify'",)
16:36:13.035 T:546217042144 ERROR: in
16:36:13.035 T:546217042144 ERROR: <bound method ?.? of <spotify.session.Session instance at 0x7f1b9b34d0>>
16:36:13.035 T:546217042144 ERROR: ignored
16:36:13.035 T:546217042144 NOTICE: Spotify --> Background service stopped
16:37:26.129 T:546769465568 ERROR: Unable to find plugin
16:37:26.129 T:548370563072 ERROR: GetDirectory - Error getting plugin://
16:37:26.129 T:548370563072 ERROR: CGUIMediaWindow::GetDirectory(plugin://) failed
16:37:38.782 T:548370563072 ERROR: Control 55 in window 10502 has been asked to focus, but it can't
16:38:07.711 T:548370563072 ERROR: Previous line repeats 2 times.
16:38:07.711 T:548370563072 ERROR: GetDirectory - Error getting plugin://plugin.audio.spotify/?action=browse_savedtracks
16:38:07.712 T:548370563072 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.spotify/?action=browse_savedtracks) failed
16:38:13.909 T:546769465568 ERROR: GetDirectory - Error getting
16:38:14.182 T:545879113952 ERROR: Previous line repeats 2 times.
16:38:14.182 T:545879113952 ERROR: EXCEPTION: Non-Existent Control 1
16:38:18.264 T:545887502560 WARNING: Attempt to use invalid handle -1
16:40:36.046 T:547016892640 WARNING: Previous line repeats 2 times.
Any help appreciated Smile
Reply
i just noticed this project on github:
https://github.com/Fornoth/spotify-connect-web

it seems to have found a way to mimic spotify connect.it seems to use Zeroconf for this.

Would it be possible to implement this in the addon as well? for me it really is a downside of using it at the moment.

Also, would it be possible to have specialize kodi commands to start playing a playlist? So that we can create a shortcut to directly play a playlist (for example and external command to the kodi system)
Reply
(2017-01-31, 18:50)kneegrow Wrote: Hello. Thank you for creating something so wonderfull.
However, i couldn't get it to work with aarch64.
I use an Odroid C2 with Libreelec.
I used the "hack" to get auth working, but still gives the "999:"Platform not supported for playback, continuing without playback support.".
I edited the utils.py file to force aarch and linux, but still does not work.
Error log:
Quote:16:35:57.835 T:547465720032 ERROR: GetDirectory - Error getting
16:36:04.765 T:546769465568 ERROR: Previous line repeats 6 times.
16:36:11.605 T:547465720032 ERROR: GetDirectory - Error getting
16:36:12.472 T:546217042144 ERROR: Previous line repeats 3 times.
16:36:12.472 T:546217042144 NOTICE: Spotify --> Your platform (aarch64 System.Platform.Linux)
16:36:13.018 T:546217042144 NOTICE: Spotify --> Starting background service...
16:36:13.032 T:546217042144 NOTICE: Spotify --> TRACE: File "/storage/.kodi/addons/plugin.audio.spotify/spotifyservice.py", line 9, in <module>
service.main()
File "/storage/.kodi/addons/plugin.audio.spotify/resources/playbackservice.py", line 285, in main
logMsg("TRACE: " + ( ''.join(traceback.format_stack()) ) )
16:36:13.033 T:546217042144 NOTICE: Spotify --> EXCEPTION in background service: Unable to find 'libspotify'
16:36:13.034 T:546217042144 ERROR: Exception
16:36:13.035 T:546217042144 ERROR: OSError
16:36:13.035 T:546217042144 ERROR: :
16:36:13.035 T:546217042144 ERROR: OSError("Unable to find 'libspotify'",)
16:36:13.035 T:546217042144 ERROR: in
16:36:13.035 T:546217042144 ERROR: <bound method ?.? of <spotify.session.Session instance at 0x7f1b9b34d0>>
16:36:13.035 T:546217042144 ERROR: ignored
16:36:13.035 T:546217042144 NOTICE: Spotify --> Background service stopped
16:37:26.129 T:546769465568 ERROR: Unable to find plugin
16:37:26.129 T:548370563072 ERROR: GetDirectory - Error getting plugin://
16:37:26.129 T:548370563072 ERROR: CGUIMediaWindow::GetDirectory(plugin://) failed
16:37:38.782 T:548370563072 ERROR: Control 55 in window 10502 has been asked to focus, but it can't
16:38:07.711 T:548370563072 ERROR: Previous line repeats 2 times.
16:38:07.711 T:548370563072 ERROR: GetDirectory - Error getting plugin://plugin.audio.spotify/?action=browse_savedtracks
16:38:07.712 T:548370563072 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.spotify/?action=browse_savedtracks) failed
16:38:13.909 T:546769465568 ERROR: GetDirectory - Error getting
16:38:14.182 T:545879113952 ERROR: Previous line repeats 2 times.
16:38:14.182 T:545879113952 ERROR: EXCEPTION: Non-Existent Control 1
16:38:18.264 T:545887502560 WARNING: Attempt to use invalid handle -1
16:40:36.046 T:547016892640 WARNING: Previous line repeats 2 times.
Any help appreciated Smile

I'm not sure, but i think it has to do with this:
16:36:13.033 T:546217042144 NOTICE: Spotify --> EXCEPTION in background service: Unable to find 'libspotify'

you need to make sure the libspotify is installed as well. (.so files)
Reply
Hello

thank you so much for the plugin , i installed it on one computer and its working fine but i can't get it to work on my main htpc ., i log in fine via browser but it fails to connect after , i have this in the log

Quote:03:07:35.628 T:11012 NOTICE: PLEX.PlexAPI -> Found external subs: []
03:07:35.644 T:11012 NOTICE: PLEX.playbackutils -> Play as a regular item.
03:07:35.753 T:5828 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'requests.exceptions.ConnectionError'>
Error Contents: HTTPSConnectionPool(host='accounts.spotify.com', port=443): Max retries exceeded with url: /api/token (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x145B6BF0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))
Traceback (most recent call last):
File "C:\Users\Rami\AppData\Roaming\Kodi\addons\plugin.audio.spotify\plugin.py", line 3, in <module>
Main().main()
File "C:\Users\Rami\AppData\Roaming\Kodi\addons\plugin.audio.spotify\resources\plugincontent.py", line 1146, in main
if self.checkLoginDetails():
File "C:\Users\Rami\AppData\Roaming\Kodi\addons\plugin.audio.spotify\resources\plugincontent.py", line 1074, in checkLoginDetails
self.token = util.prompt_for_user_token(username)
File "C:\Users\Rami\AppData\Roaming\Kodi\addons\plugin.audio.spotify\resources/libs\spotipy\util.py", line 92, in prompt_for_user_token
token_info = sp_oauth.get_access_token(code)
File "C:\Users\Rami\AppData\Roaming\Kodi\addons\plugin.audio.spotify\resources/libs\spotipy\oauth2.py", line 211, in get_access_token
headers=headers, verify=True)
File "C:\Users\Rami\AppData\Roaming\Kodi\addons\script.module.requests\lib\requests\api.py", line 110, in post
return request('post', url, data=data, json=json, **kwargs)
File "C:\Users\Rami\AppData\Roaming\Kodi\addons\script.module.requests\lib\requests\api.py", line 56, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Users\Rami\AppData\Roaming\Kodi\addons\script.module.requests\lib\requests\sessions.py", line 488, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\Rami\AppData\Roaming\Kodi\addons\script.module.requests\lib\requests\sessions.py", line 609, in send
r = adapter.send(request, **kwargs)
File "C:\Users\Rami\AppData\Roaming\Kodi\addons\script.module.requests\lib\requests\adapters.py", line 487, in send
raise ConnectionError(e, request=request)
ConnectionError: HTTPSConnectionPool(host='accounts.spotify.com', port=443): Max retries exceeded with url: /api/token (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x145B6BF0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))
-->End of Python script error report<--
03:07:35.858 T:1156 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.audio.spotify/
03:07:35.858 T:1156 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.spotify/) failed
Reply
(2017-01-31, 18:50)kneegrow Wrote: Hello. Thank you for creating something so wonderfull.
However, i couldn't get it to work with aarch64.
I use an Odroid C2 with Libreelec.
I used the "hack" to get auth working, but still gives the "999:"Platform not supported for playback, continuing without playback support.".
I edited the utils.py file to force aarch and linux, but still does not work.
Error log:
Quote:16:35:57.835 T:547465720032 ERROR: GetDirectory - Error getting
16:36:04.765 T:546769465568 ERROR: Previous line repeats 6 times.
16:36:11.605 T:547465720032 ERROR: GetDirectory - Error getting
16:36:12.472 T:546217042144 ERROR: Previous line repeats 3 times.
16:36:12.472 T:546217042144 NOTICE: Spotify --> Your platform (aarch64 System.Platform.Linux)
16:36:13.018 T:546217042144 NOTICE: Spotify --> Starting background service...
16:36:13.032 T:546217042144 NOTICE: Spotify --> TRACE: File "/storage/.kodi/addons/plugin.audio.spotify/spotifyservice.py", line 9, in <module>
service.main()
File "/storage/.kodi/addons/plugin.audio.spotify/resources/playbackservice.py", line 285, in main
logMsg("TRACE: " + ( ''.join(traceback.format_stack()) ) )
16:36:13.033 T:546217042144 NOTICE: Spotify --> EXCEPTION in background service: Unable to find 'libspotify'
16:36:13.034 T:546217042144 ERROR: Exception
16:36:13.035 T:546217042144 ERROR: OSError
16:36:13.035 T:546217042144 ERROR: :
16:36:13.035 T:546217042144 ERROR: OSError("Unable to find 'libspotify'",)
16:36:13.035 T:546217042144 ERROR: in
16:36:13.035 T:546217042144 ERROR: <bound method ?.? of <spotify.session.Session instance at 0x7f1b9b34d0>>
16:36:13.035 T:546217042144 ERROR: ignored
16:36:13.035 T:546217042144 NOTICE: Spotify --> Background service stopped
16:37:26.129 T:546769465568 ERROR: Unable to find plugin
16:37:26.129 T:548370563072 ERROR: GetDirectory - Error getting plugin://
16:37:26.129 T:548370563072 ERROR: CGUIMediaWindow::GetDirectory(plugin://) failed
16:37:38.782 T:548370563072 ERROR: Control 55 in window 10502 has been asked to focus, but it can't
16:38:07.711 T:548370563072 ERROR: Previous line repeats 2 times.
16:38:07.711 T:548370563072 ERROR: GetDirectory - Error getting plugin://plugin.audio.spotify/?action=browse_savedtracks
16:38:07.712 T:548370563072 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.spotify/?action=browse_savedtracks) failed
16:38:13.909 T:546769465568 ERROR: GetDirectory - Error getting
16:38:14.182 T:545879113952 ERROR: Previous line repeats 2 times.
16:38:14.182 T:545879113952 ERROR: EXCEPTION: Non-Existent Control 1
16:38:18.264 T:545887502560 WARNING: Attempt to use invalid handle -1
16:40:36.046 T:547016892640 WARNING: Previous line repeats 2 times.
Any help appreciated Smile

You have use a build with 32bit Userspace, see Libreelec forum for info
Reply
(2016-03-22, 21:31)marcelveldt Wrote: There is a small workaround to try if you have another client which actually does have a browser:
1. install the spotify client on a pc with a browser
2. open the spotify client and accept the authentication request in the browser.
3. now, on the filesystem navigate to kodi userdata\addon_data\plugin.audio.spotify and copy the cache file to the same location on your pi

I don't get what I'm supposed to do.

I have the Spotify addon in kodi and obviously when I try to open it, it fails.

I have Spotify in my Linux machine and use it daily, but I was never prompted for authentication.

What should I do?
Reply
  • 1
  • 44
  • 45
  • 46(current)
  • 47
  • 48
  • 131

Logout Mark Read Team Forum Stats Members Help
Spotify for Kodi17