Issue #58 open

Error downloading music

Guido Rugo
created an issue

{{{ [Download connecting] 24335407 [Streaming URL error] The song streaming key is empty [Download error] 24335407 The song streaming key is empty }}}

Song : Skrillex - Fucking Die 1

Comments (8)

  1. Anonymous

    Hi guys, I played a little bit around with the lib. The reason why the downloading failed, is because groveshark has changed the api a little bit. Now you need to add songs first to a queue, before you can listen or download them. The following code fixes this issue. Simply add that function to the groove.py and call it in the getStreamKeyFromSongIDEx() after the "init" call. Hope it works for you guys.

    def addSongsToQueue(_id): """ add song id to queue, otherwise streamkey can not be retrieved anymore """

    init()

    p = {} p["parameters"] = {} p["header"] = h p["header"]["client"] = "jsqueue" p["header"]["clientRevision"] = "20120220.01" p["header"]["token"] = prepToken("addSongsToQueue", ":bangersAndMash:") p["method"] = "addSongsToQueue"

    conn = createCurl("https://grooveshark.com/more.php?" + p["method"]) conn.setopt(pycurl.POST, True) conn.setopt(pycurl.POSTFIELDS, json.JSONEncoder().encode(p)) conn.setopt(pycurl.HTTPHEADER, [ "Referer: " + _referer, "Accept-Encoding: gzip", "Content-Type: application/json" ])

    conn.perform() conn.close()

  2. muflone

    Hello

    your fix doesn't wok for me. I'm still receiving:

    [Streaming URL error] The song streaming key is empty
    [Download error] 25315053 The song streaming key is empty
    

    A similar error happens when I try to play a song from my playlist:

    [Streaming URL error] The song streaming key is empty
    Traceback (most recent call last):
      File "/usr/share/gsharkdown/lib/tfuncs.py", line 52, in run
        play_url = self.song.get_streaming_url()
      File "/usr/share/gsharkdown/lib/Song.py", line 342, in get_streaming_url
        raise e
    Exception: The song streaming key is empty
    
  3. Vladimir Kolev repo owner
    • changed status to open

    I want to apologize to you all, but I didn't had a lot of time to work on gSharkDown, so I will try to fix all the changes from the GS API and release the new version with proxy support.

  4. reginaldl

    Hi,

    It looks like changing URL from https://grooveshark.com to the beta version https://html5.grooveshark.com resolves this issue. When using the original v.0.7.0, I can download a couple of songs then I quickly get the described exception (The song streaming key is empty). I've modified my gshardown installation to point to html5.grooveshark.com and now it seems to work properly.

    Could anyone have a try?

    PS: my nickname is Regi not Ragi, please fix the README ;)

  5. Log in to comment