View Single Post
Posts: 11 | Thanked: 21 times | Joined on May 2010
#910
First off, I would like to thank fatalsaint for all he gave to the community, particularly this little gem and its precursor. He will be missed...

Now, I don't know Python, and I damn sure don't know the maemo OS, but I think I've located a fix for the current issue plaguing pyRadio. (As normal, Pandora made a change that broke things for us.)

Here are the links that I found...
Similar bug report for pianobar...
Code fix from python app that pyRadio is based on... (I apologize if this link doesn't work, but the site is participating in the blackout to protest SOPA/PIPA so I can't verify it.)


In your favorite editor, open file "/opt/pyRadio/libpiano/pandora.py" for modification. (Requires superuser privileges... I used the "sudo gainroot" command.) On line 290, you should see "def getFragment". (This is just a baseline so you can make sure you're in the right place.) Modify line 295 as follows...
From:
Code:
reqUrl = self.base_url_lid %( self.rid, self.lid, "getFragment" )
To:
Code:
reqUrl = self.base_url_lid.replace("https","http") %( self.rid, self.lid, "getFragment" )
That should be it. Save the file and try running pyRadio again. (W4M, YMMV.) Now if someone can figure out WTH is up with the authentication, that would be great because it's a PITA to have to delete the config file before each run.