maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   [application] pyRadio (Pandora) (https://talk.maemo.org/showthread.php?t=56036)

Hec 2012-01-21 19:26

Re: [application] pyRadio (Pandora)
 
Quote:

Originally Posted by slimjim010 (Post 1152597)



I was able to fix my app by modifying file "/opt/pyRadio/libpiano/pandora.py".

Change line 295 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" )

this did the trick perfectly. Super thanks ;)
Btw, just back after 3 months with Android. Missed my lost N900 so much that I bought another one ;)

IsraelPerucci 2012-01-21 20:47

Re: [application] pyRadio (Pandora)
 
Quote:

Originally Posted by lvlonkey (Post 1153584)
well what i did was use leafpad to open and modify the file. if you dont already have leafpad, install it. then in xterm as root type
"leafpad /opt/pyRadio/libpiano/pandora.py"
this will open the file in leafpad. you can use the leafpad menu option of jump to to get to line 295. after you're done just save and exit.

Thank you so much for your help

I was able to open from x-terminal and put the code in, but when I hit save(in leafpad), it asks me for a location to save, where do I save it to?

Thanks for your time.

Ps, recorded the steps I took: h t t p://tinyurl.com/7royyh7

Israel

IsraelPerucci 2012-01-21 21:12

Re: [application] pyRadio (Pandora)
 
Hi

This is a video of what I did to put the code in, I know i did something wrong(because it didn't work), so please tell me what I did wrong.

Thanks.

http://dl.dropbox.com/u/3858552/N900%20pyRadio.avi

slimjim010 2012-01-22 17:14

Re: [application] pyRadio (Pandora)
 
You want to overwrite the original, so save it to the same location you read it from. (/opt/pyRadio/libpiano/pandora.py)

fatalsaint 2012-01-22 18:46

Re: [application] pyRadio (Pandora)
 
All,

I appologize for being absent. I didn't intend to completely abandon you guys but real life gets in the way sometimes.

Slimjim has requested to be a co-maintainer of the package and I approved. I am working with Jim to get him up to speed on how to submit package updates and make changes for you guys. This is definitely a better solution than having me do it anymore since I no longer know when it's broken since I don't use it, and it doesn't impact my life like it used to making it a higher priority.

Just know I'm not completely gone, and I will be helping slim with whatever he needs to keep pyradio working for you guys. If he can't figure out a problem he can reach me and I will help him out. No matter what, I will make sure pyRadio lives on for you guys but updates will be much further between and not near as fast a turn around as before from me - hopefully getting slimjim on board will remedy that.

Thanks,

--FatalSaint

klinglerware 2012-01-22 19:01

Re: [application] pyRadio (Pandora)
 
Quote:

Originally Posted by fatalsaint (Post 1154088)
All,

I appologize for being absent. I didn't intend to completely abandon you guys but real life gets in the way sometimes.

Slimjim has requested to be a co-maintainer of the package and I approved. I am working with Jim to get him up to speed on how to submit package updates and make changes for you guys. This is definitely a better solution than having me do it anymore since I no longer know when it's broken since I don't use it, and it doesn't impact my life like it used to making it a higher priority.

Just know I'm not completely gone, and I will be helping slim with whatever he needs to keep pyradio working for you guys. If he can't figure out a problem he can reach me and I will help him out. No matter what, I will make sure pyRadio lives on for you guys but updates will be much further between and not near as fast a turn around as before from me - hopefully getting slimjim on board will remedy that.

Thanks,

--FatalSaint

This is great news. Thank you both!

IsraelPerucci 2012-01-22 19:14

Re: [application] pyRadio (Pandora)
 
I fixed! my PyRadio works again!

Thank you guys for all your help!


the mistake I made was I wrote in the command line: opt/pyRadio/libpiano/pandora/py ... man! that was a massive mistake!
is not pandora/py but pandora.py

Live and learn
Israel

slimjim010 2012-01-23 01:01

Re: [application] pyRadio (Pandora)
 
fatalsaint,

Here's a copy of the authentication error that I was having problems with. I think I didn't start having a problem with this until I uninstalled and reinstalled the app. Then, I would get this error every time I ran the app with the config file in place. If I deleted the config file, it would run correctly (prompting for user/pass), but if I closed the app and then re-opened it (using settings from config), I would receive this error. Oddly enough, I opened and closed the app nearly a dozen times today in rapid succession trying to capture the error, and it only happened once.

Code:

~ $ /opt/pyRadio/pyRadio.py
RX-51
PANDORA: Loading key from file "/opt/pyRadio/libpiano/key_in"
PANDORA: Loading key from file "/opt/pyRadio/libpiano/key_out"
Error calling slot "auth"
Traceback (most recent call last):
File "/opt/pyRadio/pyRadio.py", line 211, in auth
authenticated = self.player.auth( self.c.user, self.c.password )
File "/opt/pyRadio/radioplayer.py", line 87, in auth
self.pandora.sync()
AttributeError: 'NoneType' object has no attribute 'sync'
('found new MAFW renderer %s', 'Mafw-Gst-Renderer')
using MAFW Gst-Renderer
MAFW PROPERTY RECEIVED 5877792 volume 6582432 <ctypes.LP__GError object at 0x4479ce90>
volume 28
Radio Started.
~ $


fatalsaint 2012-01-23 01:42

Re: [application] pyRadio (Pandora)
 
Slimjim,

check radioplayer.py file. Line 33 has self.pandora = None and line 38 has self.pandora = Pandora( self.format, self.protocol_version ).

Go ahead and remove line 33, and put line 38 in it's place. So, line 33 will be the Pandora(..) line and line 38 will be the start of an if statement.

If that's too confusing I'll PM you the full changes.

Tell me what happens when you do that.

blitzlee06 2012-01-23 07:55

Re: [application] pyRadio (Pandora)
 
i already uninstall reboot install..still not working..i already change a line http/https but still not working.. help :(


All times are GMT. The time now is 23:53.

vBulletin® Version 3.8.8