[RELEASE] Grooveshark (Script) Music Addon

  Thread Rating:
  • 4 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
denhams Offline
Senior Member
Posts: 135
Joined: Jun 2010
Reputation: 1
Post: #371
While we wait for the new API key, I have done an interim version of the plugin that should work okay. Please see the post:

http://forum.xbmc.org/showpost.php?p=690...stcount=18

Stephen.
find quote
sunny-hd Offline
Junior Member
Posts: 18
Joined: Jan 2011
Reputation: 0
Location: Germany
Post: #372
Thanks!

Klaus

One Question...
Is it possible to start a song with the new JSON API.
If yes what would be the syntax of the URL?

{ "jsonrpc": "2.0", "method": "XBMC.Play", "params": "plugin://plugin.audio.groove/some url", "id": 1 }
(This post was last modified: 2011-01-14 21:20 by sunny-hd.)
find quote
solver Offline
Skilled Python Coder
Posts: 241
Joined: Aug 2007
Reputation: 12
Post: #373
sunny-hd Wrote:Thanks!

Klaus

One Question...
Is it possible to start a song with the new JSON API.
If yes what would be the syntax of the URL?

{ "jsonrpc": "2.0", "method": "XBMC.Play", "params": "plugin://plugin.audio.groove/some url", "id": 1 }

I had a quick look at the documentation for XBMC.play (http://wiki.xbmc.org/index.php?title=JSON_RPC#XBMC.Play) and it doesn't seem to except any parameters as you suggest above. I have never used the new JSON API so I could certainly be wrong.

It seems you could do it using Playlist.Add and then start the song using AudioPlaylist.Play. The url is "plugin://script.audio.grooveshark/?playSong=<grooveshark songid>". This is for my version of the plugin - denhams is different. Expect the url to change in the upcoming release. It might not work since I'm not sure that XBMC returns a valid handle for the python thread when called in this manner.

--
Problems with the GrooveShark script? Please have a look here before posting.
find quote
sunny-hd Offline
Junior Member
Posts: 18
Joined: Jan 2011
Reputation: 0
Location: Germany
Post: #374
Hi solver,

thanks for taking a look.
You are right. There is nothing in the docs but topfs2 posted that it would work like this.
http://forum.xbmc.org/showthread.php?tid...son+plugin

In the first step I would like to have a basic integration of grooveshark on my iPad.
I do the search of a song with the tinysong api and would like to start the url in XBMC. Will try if it works as soon as your Script will work again.

Also it would be interesting if I could use the part of your script which communicates with grooveshark as a commandline app. As Im not a coder but keen on having grooveshark on my iPad it would be nice if you point me in the right direction how to do that. I just started to learn some perl so dont have any python knowledge at all.

Tried to find a way to start a song with denhams plugin.audio.groove-0.2.1. but without success. I searched in the log and found the URL that plays the song but couldnt start the plugin playing that song with json.

But as you guys will start a joint venture it would be great if you have in mind controlling the plugin with json.

Thanks
Klaus
find quote
Stigy Offline
Member
Posts: 61
Joined: Jul 2010
Reputation: 0
Post: #375
denhams Wrote:While we wait for the new API key, I have done an interim version of the plugin that should work okay. Please see the post:

http://forum.xbmc.org/showpost.php?p=690...stcount=18

Stephen.

This version doesn't work for me.

I get an error upon launching the plugin.
find quote
Jopplehead Offline
Member
Posts: 53
Joined: Jan 2010
Reputation: 0
Post: #376
denhams Wrote:While we wait for the new API key, I have done an interim version of the plugin that should work okay. Please see the post:

http://forum.xbmc.org/showpost.php?p=690...stcount=18

Stephen.

THANKS!

Working good on the latest Nightly XBMC4XBOX Smile
find quote
Muuh Offline
Junior Member
Posts: 29
Joined: Jan 2011
Reputation: 0
Post: #377
Tried the SVN build on my AppleTV2G, but i can't select any menu item.
Left, right, up down are working.

Update: Fix here
(This post was last modified: 2011-02-02 22:23 by Muuh.)
find quote
solver Offline
Skilled Python Coder
Posts: 241
Joined: Aug 2007
Reputation: 12
Post: #378
Hey guys,

I've completely rewritten the API to use groovewalrus. I've aimed at modularity so if Grooveshark decides to give me an API key then it should be "easy" to switch. Navigation in the script has undergone some changes as well. Mostly internally for my own sake. People reported some stability issues in the old script and I've tried to address that to the best of my ability. However, I think some of it is/was caused by the python interpreter not being to fond of running multiple scripts. I haven't seen the new version crash yet though.

There's still some functionality missing but I'm working on it.

Long story short. I'd like some beta testing before I ask for a pull. If you're up for it then grab the script from svn (see first post in this thread) and report back.

My graphics skills are lacking so if somebody feels like redesigning the new icons I've added then please do Wink

Cheers,
Solver

--
Problems with the GrooveShark script? Please have a look here before posting.
(This post was last modified: 2011-01-31 21:00 by solver.)
find quote
denhams Offline
Senior Member
Posts: 135
Joined: Jun 2010
Reputation: 1
Post: #379
solver Wrote:I've completely rewritten the API to use groovewalrus.

Well done. I took a peak at the API in SVN and it looks pretty complete.

solver Wrote:Long story short. I'd like some beta testing before I ask for a pull.

Count me in.

Stephen.
find quote
dallasnights Offline
Fan
Posts: 515
Joined: Jan 2011
Reputation: 0
Post: #380
Love to beta for you too let me know where and when

Thanks
find quote
Post Reply