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)

fatalsaint 2010-09-29 22:14

Re: [application] pyRadio (Pandora)
 
Well.. I know i've used it for a couple of hours without problem.. but I do recall that pianobar had an issues if you play Pandora for something like 5-6 hours your session will time-out and you need to re-authenticate. I haven't played it that long yet to try and capture that error and re-authenticate you automatically...

If you run it from a terminal and manage to reproduce the problem, the output should have the XML returned from Pandora that could help.

mfortner 2010-10-03 16:10

HELP REQUEST Re: [application] pyRadio (Pandora)
 
1 Attachment(s)
I've been tinkering with pyRadio for a couple of hours and reading through this thread trying to get it to work on my N810.

It opens, requests login info, but it will not load or create stations...thus will not play.

I think I have found at least part of the problem, but I am not a programmer so I don't really know how to fix it. I have no pyradio directory nor config file in ~/.config ... regarding ~/.config/pyradio/config.

I tried adding the directory and a new file (blank since I new nothing else ) using Cyberduck, but that did not seem to help. It persists in requesting login info at every launch.

From terminal:

~ $ /opt/pyRadio/pyRadio.py
Radio Started.
No FM Transmitter.
could not autorotate on
Error: com.savagebeast.radio.api.protocol.xmlrpc.RadioXml RpcException: 192.168.160.92|1286123784732|OUT_OF_SYNC|You have no chance to survive make your time.
Code: 1
Error: com.savagebeast.radio.api.protocol.xmlrpc.RadioXml RpcException: 192.168.160.182|1286123787967|OUT_OF_SYNC|You have no chance to survive make your time.
Code: 1
Error: com.savagebeast.radio.api.protocol.xmlrpc.RadioXml RpcException: 192.168.161.213|1286123790868|OUT_OF_SYNC|You have no chance to survive make your time.
Code: 1
Traceback (most recent call last):
File "/opt/pyRadio/pyRadio.py", line 206, in auth
self.auth( count )
File "/opt/pyRadio/pyRadio.py", line 206, in auth
self.auth( count )
File "/opt/pyRadio/pyRadio.py", line 206, in auth
self.auth( count )
File "/opt/pyRadio/pyRadio.py", line 191, in auth
self.closeEvent()
File "/opt/pyRadio/pyRadio.py", line 272, in closeEvent
self.player.close()
File "/opt/pyRadio/radioplayer.py", line 126, in close
self.player.close()
File "/opt/pyRadio/libpiano/AbstractBackend.py", line 433, in close
self._close()
File "/opt/pyRadio/libpiano/OSSOBackend.py", line 172, in _close
self.__current_player.stop()
AttributeError: 'NoneType' object has no attribute 'stop'

fatalsaint 2010-10-04 13:48

Re: [application] pyRadio (Pandora)
 
You seem to be experiencing the same problem as a couple guys a few pages back that I didn't have a fix for.

However, I found an email from the author of pianobar in my mailbox yesterday that he sent probably a week ago that has a potential fix. I will need to figure out if I can code his suggestion and then work with one of you with the "OUT_OF_SYNC" problem and give you an "unofficial" build to make sure it works before publishing it to the repositories.

This will likely take a bit as I don't have much time this week, and I'll be out of town next, but I'll be working on something as I can.

Den in USA 2010-10-04 19:51

Re: [application] pyRadio (Pandora)
 
Finally, I have finished reading every single post in this PyRadio thread to bring me up to speed and I now subscribe! After using it last night at home, the only change I would like to see in Version 3.3 for Diablo is to get rid of the white backround and replace it with maybe a dark green color. I did notice that I get the same non-responsive screen as in post # 282 here at work because our company "blocks" pandora.

efeinblatt 2010-10-05 00:20

pyRadio
 
So, finally back in the US and installed pyRadio, which worked fine for about 4 days. Authentication perfect. But, now the program quits on my while it is authenticating. Haven't installed any new programs. Anyone have any answers? If I can't make this work, how can I run Pandora from the command line?

fatalsaint 2010-10-05 05:48

Re: pyRadio
 
Quote:

Originally Posted by efeinblatt (Post 833418)
So, finally back in the US and installed pyRadio, which worked fine for about 4 days. Authentication perfect. But, now the program quits on my while it is authenticating. Haven't installed any new programs. Anyone have any answers? If I can't make this work, how can I run Pandora from the command line?

Go to a terminal and run:
Code:

/opt/pyRadio/pyRadio.py
And not the output here.

leviathan3k 2010-10-05 06:01

Re: [application] pyRadio (Pandora)
 
Have you (or anyone else) actually tried playing the regular web app for long periods of time? After a while, it stops playing and says something like "are we just playing to an empty room or somethig? Press here to confirm that soemone is actually listening".

Would that have something to do with why the program stops working after a while?

efeinblatt 2010-10-05 17:41

Re: pyRadio
 
wow. I ran this and the program loaded and quit again on authentication. then I looked at the output in terminal and it said that I had invalid username/password. So, I looked again and saw that it put my username in beginning with an uppercase 'E'. Changed it to lowercase and it now works fine. Weird. Don't know why it worked before and how that lowercase became an uppercase. But, thanks, for having me do this. It forced me to identify the problem.

Quote:

Originally Posted by fatalsaint (Post 833506)
Go to a terminal and run:
Code:

/opt/pyRadio/pyRadio.py
And not the output here.


fatalsaint 2010-10-06 06:13

Re: [application] pyRadio (Pandora)
 
pyRadio seems broken tonight. First it appears they (Pandora) updated their API (Was giving me the protocol version error) but after I fixed that I'm getting a strange "Content is not allowed in prolog" error.

I'm trying to work on it.

AgogData 2010-10-06 11:39

Re: [application] pyRadio (Pandora)
 
when i enter the username and password at the authenication it crashes too, that sux


All times are GMT. The time now is 04:24.

vBulletin® Version 3.8.8