2017-01-25, 01:35
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:
If you have something similar to play a track, that would be awesome.
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.