[RELEASE] Grooveshark (Plugin) Music Addon - An alterntive to the Grooveshark Script

  Thread Rating:
  • 3 Votes - 3.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Cool_bombom Offline
Senior Member
Posts: 111
Joined: Oct 2008
Reputation: 1
Post: #16
Hi all

it's kind of funny, i get a error saying "unable to get a new session id" when i use solver grooveshark script, but with denhams plugin it all works fine??

And i doubt i have to wait for the session id to timeout, because i tried this morning and it has been over 12 hours since i last login, and it still worked??

cheers
c_bb
find quote
denhams Offline
Senior Member
Posts: 153
Joined: Jun 2010
Reputation: 1
Post: #17
Yes, it still works for me too. In the plugin it saves the session id to file and only tries to get a new one (which _will_ fail) when the old one stops working. I think the session ids can last 7 days.

Stephen.
find quote
denhams Offline
Senior Member
Posts: 153
Joined: Jun 2010
Reputation: 1
Post: #18
I have made a new version (0.2.0) of the plugin that uses a different API. You can download it from:

http://sourceforge.net/projects/xbmc-gro...p/download

Some functions are missing in this version: "unfavorite", playlist modification, find similar artists. However, the basics should work okay although you may find that the songs take longer to start playing (I will work to speed this up).

I would recommend _only_ using this version if your current version has actually stopped working.

Stephen.
find quote
Grumpy1954 Offline
Junior Member
Posts: 44
Joined: Oct 2010
Reputation: 0
Post: #19
denhams Wrote:I have made a new version (0.2.0) of the plugin that uses a different API.
.

Many thanks
find quote
solver Offline
Skilled Python Coder
Posts: 241
Joined: Aug 2007
Reputation: 12
Post: #20
Hi denhams,

I had a quick look at your API and I was just wondering why you don't return the stream url directly in getSongURL, and thereby in setResolvedURL, instead of downloading it? It speeds it up significantly. Something to do with _markSongDownloaded() to avoid triggering the attacker detection?

--
Problems with the GrooveShark script? Please have a look here before posting.
find quote
denhams Offline
Senior Member
Posts: 153
Joined: Jun 2010
Reputation: 1
Post: #21
Hi solver,

It would be much better just to return the stream URL but I haven't worked out how to do that Smile.

The URL is a POST with the streamkey as data. Passing only the URL to setResolvedURL() doesn't work - it needs to post the streamkey too.

Stephen.
find quote
tco42 Offline
Junior Member
Posts: 14
Joined: Dec 2010
Reputation: 0
Location: Germany
Post: #22
i have just tried your plugin and i really like it, there is just a little feature that is missing:
I usually dont make too many playlists myself but i follow my friends and added their playlists. Those playlists are visible when i listen to grooveshark via browser but your plugin just shows my own playlists Sad is there any way to change this?
find quote
solver Offline
Skilled Python Coder
Posts: 241
Joined: Aug 2007
Reputation: 12
Post: #23
denhams Wrote:Hi solver,

It would be much better just to return the stream URL but I haven't worked out how to do that Smile.

The URL is a POST with the streamkey as data. Passing only the URL to setResolvedURL() doesn't work - it needs to post the streamkey too.

Stephen.
You can do it like this in getSongURL:

Code:
postData = {"streamKey": self._lastStreamKey}
postData = urllib.urlencode(postData)
url = "http://" + self._lastStreamServer + "/stream.php?" + str(postData)
return url

--
Problems with the GrooveShark script? Please have a look here before posting.
find quote
denhams Offline
Senior Member
Posts: 153
Joined: Jun 2010
Reputation: 1
Post: #24
solver Wrote:You can do it like this in getSongURL:

Code:
postData = {"streamKey": self._lastStreamKey}
postData = urllib.urlencode(postData)
url = "http://" + self._lastStreamServer + "/stream.php?" + str(postData)
return url

Many thanks. That works fine. (For some reason I thought I tried that before and it didn't work Confused ). Anyway, I have done the update and now the songs load much quicker:

http://sourceforge.net/projects/xbmc-gro...p/download

BTW, any news from Grooveshark about the new webservices API?

Stephen.
find quote
denhams Offline
Senior Member
Posts: 153
Joined: Jun 2010
Reputation: 1
Post: #25
I think there is. I will try to add it.

...that is, other users playlists.

Stephen.
find quote
dominater01 Offline
Member
Posts: 98
Joined: May 2007
Reputation: 0
Post: #26
i dont know if this is a known issue but the plugin wont let me sign in
i know my info hasnt changed cuz the script still works for me
find quote
denhams Offline
Senior Member
Posts: 153
Joined: Jun 2010
Reputation: 1
Post: #27
Which version are you using? You probably need 0.2.1 (http://sourceforge.net/projects/xbmc-gro...p/download).

Stephen.
find quote
Hutch Offline
Member
Posts: 75
Joined: Nov 2009
Reputation: 0
Post: #28
@solver
So, what hapened to your addon? The API changed? Do you plan on fixing yours or simply working on denhams? Your old one loaded stuff *so* much faster and the layout was much better.

@denhams
Thanks for this, it is a good substitution while solver's is unavailable. Do you plan on addon it to the xbmc addon repo for easy updating?

Thanks
find quote
solver Offline
Skilled Python Coder
Posts: 241
Joined: Aug 2007
Reputation: 12
Post: #29
Hutch Wrote:@solver
So, what hapened to your addon?

The Moovida media center had a web service that I used to gain access to the grooveshark API. Unfortunately that was shut down a couple of weeks ago and the addon stopped working. Grooveshark's promised me a key for their new API but I haven't received it yet. As soon as I do, Denhams and I, will start working on a new API. So it'll be back eventually.

--
Problems with the GrooveShark script? Please have a look here before posting.
find quote
solver Offline
Skilled Python Coder
Posts: 241
Joined: Aug 2007
Reputation: 12
Post: #30
denhams Wrote:BTW, any news from Grooveshark about the new webservices API?

Stephen.

Not yet. I'll drop them a line or two tomorrow to see if I can't get an ETA

--
Problems with the GrooveShark script? Please have a look here before posting.
find quote
Post Reply