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

  Thread Rating:
  • 2 Votes - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
flopp Offline
Junior Member
Posts: 5
Joined: Dec 2011
Reputation: 0
Post: #191
It does'nt fix my issue.
I've found a workarround.
If you change the User-Agent used in HTTP queries, it seams to work.


Code:
File : resources/lib/GroovesharkAPI.py
Function : _getRemote

The line :
req = urllib2.Request(url)
must be replace by :
req = urllib2.Request(url, None, {"User-Agent": "Python-urllib/2.4"})
find quote
flopp Offline
Junior Member
Posts: 5
Joined: Dec 2011
Reputation: 0
Post: #192
Now, I've a new issue.

When I send a request to the groovshark API.
The response is :

{"header":{"hostname":"RHL061"},"result":{"StreamKey":"","url":"","StreamServerID":0,"uSecs":0,"warning":"Not provisioned for production use."},"errors":[{"code":102,"message":"User must be VIP."}]}

I don't understand why it said that User must be VIP.
I've suscribed to the premium service.
find quote
flopp Offline
Junior Member
Posts: 5
Joined: Dec 2011
Reputation: 0
Post: #193
So, it works with your version 1.0.0 and my workaround. Smile Thanks Smile

Version 1.0.1 probably does not have the right key...
find quote
denhams Offline
Senior Member
Posts: 135
Joined: Jun 2010
Reputation: 1
Post: #194
flopp Wrote:So, it works with your version 1.0.0 and my workaround. Smile Thanks Smile

Version 1.0.1 probably does not have the right key...

I'm glad it is working for you but please tell me which version of XBMC and OS you are using so I can try to do a permanent fix that can be used by other people.

Stephen.
find quote
flopp Offline
Junior Member
Posts: 5
Joined: Dec 2011
Reputation: 0
Post: #195
Thx for you great job!

I use Ubuntu 11.10 (GNU/Linux 3.0.0-14-generic x86_64) with XBMC 10.1.
I use libpython2.7 (2.7.2-5ubuntu1) to compile XBMC.
Your script works only with Python 2.4 because you use the lib useragent to talk with Google App. If you want fix it permanently you can maybe force with your own useragent.

I've another question, when you switch of track in a playlist. It has a short load time with blank sound. Do you think it's possible to pre load the next track to fix it ?
find quote
denhams Offline
Senior Member
Posts: 135
Joined: Jun 2010
Reputation: 1
Post: #196
flopp Wrote:Thx for you great job!

I use Ubuntu 11.10 (GNU/Linux 3.0.0-14-generic x86_64) with XBMC 10.1.
I use libpython2.7 (2.7.2-5ubuntu1) to compile XBMC.
Your script works only with Python 2.4 because you use the lib useragent to talk with Google App. If you want fix it permanently you can maybe force with your own useragent.

I've another question, when you switch of track in a playlist. It has a short load time with blank sound. Do you think it's possible to pre load the next track to fix it ?

Thanks for that. I changed the Google app engine to except Python 2.7. You might want to try now with version 1.0.2 (http://downloads.sourceforge.net/project...-1.0.2.zip).

I'll look into pre-loading the next track but you might want to try the tip under "FAQ" at http://forum.xbmc.org/showthread.php?tid=74474 .

Stephen.
find quote
dallasnights Offline
Fan
Posts: 515
Joined: Jan 2011
Reputation: 0
Post: #197
not working on ATV2 for some reason, I put in my credentials but it says Unable to connect with Grooveshark, can you help?
find quote
denhams Offline
Senior Member
Posts: 135
Joined: Jun 2010
Reputation: 1
Post: #198
dallasnights Wrote:not working on ATV2 for some reason, I put in my credentials but it says Unable to connect with Grooveshark, can you help?

Which version of the addon and XBMC are you using? Switch on debug (in the addon settings) and send me the log. Thanks.
find quote
dallasnights Offline
Fan
Posts: 515
Joined: Jan 2011
Reputation: 0
Post: #199
xbmc 11.0 eden, for atv2
Where can I find the log to send you please advise

Thanks for your help
find quote
dallasnights Offline
Fan
Posts: 515
Joined: Jan 2011
Reputation: 0
Post: #200
11:34:03 T:169922560 NOTICE: -->Python Interpreter Initialized<--
11:34:03 T:169922560 ERROR: /var/mobile/Library/Preferences/XBMC/addons/plugin.audio.groove/resources/lib/GroovesharkAPI.py:18: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import urllib2, pprint, md5, os, pickle, tempfile, time, re, simplejson, base64
11:34:05 T:169922560 NOTICE: Request...
11:34:05 T:169922560 NOTICE: '{"url": "https://api.grooveshark.com/ws3.php?sig=04038dc54c56c058c704dc98a7d6617f", "postData": "{\\"header\\": {\\"wsKey\\": \\"denhamxmbc\\"}, \\"method\\": \\"startSession\\", \\"parameters\\": {}}"}'
11:34:07 T:117530624 ERROR: GetDirectory - Error getting plugin://plugin.audio.groove
11:34:07 T:117530624 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.groove) failed
11:36:09 T:117530624 ERROR: Texture manager unable to load file: /var/mobile/Repo/plugin.audio.groove-1.0.2.zip/icon.png
11:36:57 T:117530624 WARNING: CUtil::GetMatchingSource... no matching source found for [Addons]
11:37:00 T:169263104 NOTICE: -->Python Interpreter Initialized<--
11:37:01 T:169263104 ERROR: /var/mobile/Library/Preferences/XBMC/addons/plugin.audio.groove/resources/lib/GroovesharkAPI.py:18: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import urllib2, pprint, md5, os, pickle, tempfile, time, re, simplejson, base64, sys, socket
11:37:03 T:169263104 NOTICE: Request...
11:37:03 T:169263104 NOTICE: '{"url": "https://api.grooveshark.com/ws3.php?sig=04038dc54c56c058c704dc98a7d6617f", "postData": "{\\"header\\": {\\"wsKey\\": \\"denhamxmbc\\"}, \\"method\\": \\"startSession\\", \\"parameters\\": {}}"}'
11:37:06 T:117530624 ERROR: GetDirectory - Error getting plugin://plugin.audio.groove
11:37:06 T:117530624 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.groove) failed
find quote
Post Reply