Active Topics

 



Notices


Reply
Thread Tools
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#431
Originally Posted by TiagoTiago View Post
Btw, i've just hit the MB limit for this month and got my connection speed downgraded till January, now pyRadio keeps pausing, how can i increase the buffer size so it will play ininterruptly even when under a slow connection?

Also, could you make it use more than one connection at time so while one song is playing it will already be downloading the next random song to not pause much between songs please?
Short answer on this one is No. All of the buffering/downloading of the song is done by the Media backend, in this case MAFW, and not by pyRadio itself. It started with libmad/libao with pianobar, then gstreamer, now MAFW. Buffering has gotten better along the way but there's no real way to "make" MAFW do anything since, AFAIK, it's completely undocumented.

On another note: Someone want to tell me why I'm a dick? (reads tags..)
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 
Posts: 132 | Thanked: 98 times | Joined on Mar 2010 @ New Jersey
#432
Originally Posted by fatalsaint View Post
On another note: Someone want to tell me why I'm a dick? (reads tags..)
WTF is up with that ****? You're the furthest from a dick. Good catch. That needs to be removed.
__________________
Mobile- Nokia N9, Nokia N900(still keeping it around), Apple iPad.

Check out:
pyRadio-A Pandora Client
 

The Following 3 Users Say Thank You to The Arsonist For This Useful Post:
Posts: 1,522 | Thanked: 392 times | Joined on Jul 2010 @ São Paulo, Brazil
#433
After playing for a while it will eventually stop playing (somtimes hitting the next button or switching radios makes it play again), running from the console i spotted the following:

Code:
...
MAFW POSITION 0
MAFW POSITION 0
MAFW POSITION 0
Getting next song..
Error: com.savagebeast.radio.api.protocol.xmlrpc.RadioXmlRpcException: 192.168.160.72|1293972267356|AUTH_INVALID_TOKEN|Invalid auth token
Code: 1
Traceback (most recent call last):
  File "./pyRadio.py", line 265, in <lambda>
    self.stimer.singleShot(500, lambda: self.player.getMoreSongs(self.curStation, self.c.format))
  File "/opt/pyRadio/radioplayer.py", line 102, in getMoreSongs
    fragment = self.pandora.getFragment( station, format )
  File "/opt/pyRadio/libpiano/pandora.py", line 273, in getFragment
    url = parsed[i]["audioURL"]
TypeError: string indices must be integers
PLAY
MAFW STATE CHANGED 3
MAFW PROPERTY CHANGED transport-actions  <type 'str'>
MAFW PLAYBACK 4876832 None <ctypes.LP__GError object at 0x44e7c850>
MAFW METADATA CHANGED is-seekable [False]
MAFW STATE CHANGED 0
MAFW PROPERTY CHANGED transport-actions  <type 'str'>
MAFW POSITION 0
MAFW POSITION 0
MAFW POSITION 0
...
dunno if it is related
 

The Following User Says Thank You to TiagoTiago For This Useful Post:
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#434
Yeah that's actually one I was expecting already. What happens is Pandora has an expiration on your original ticket and so if you play for a few hours you get signed out. All it should require is calling the authentication functions again I just haven't implemented the trap for that error as I didn't have any output to look at. (I've never listened to Pandora for that long).

Thanks for the snippet, I'll put it to use when I can.
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 
Posts: 1,522 | Thanked: 392 times | Joined on Jul 2010 @ São Paulo, Brazil
#435
That one really is the right one? I was kinda sleeping when the music went away and only went looking for an error msg on the console some time later....
 
Posts: 1 | Thanked: 0 times | Joined on Jan 2011
#436
Are there any web gui's for pianobar? I'm looking to control pianobar on a headless server using a web app.

I've attemped to start writing one, but I'm hitting road blocks when trying to launch an binary from PHP.
 
Posts: 129 | Thanked: 11 times | Joined on Jan 2009 @ New York, NY
#437
Two "requests," although they may have already been mentioned here, I haven't read through the entire thread...

1) Any chances for a widget, similar to the media player widget? I think a similar sized one could fit all the functionality

2) I love this app, the functionality is great, very useful, etc. but I can't help but feel that it is lacking aesthetically. Although many here may feel appearance is unimportant, I think it makes thigs a great deal more enjoyable and lends itself to ui improvements. Any chances for an update there?
 
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#438
Originally Posted by shadowjig View Post
Are there any web gui's for pianobar? I'm looking to control pianobar on a headless server using a web app.

I've attemped to start writing one, but I'm hitting road blocks when trying to launch an binary from PHP.
I don't know.. the only one close to that I know of is the one for the X-box.

Originally Posted by jmc8501 View Post
Two "requests," although they may have already been mentioned here, I haven't read through the entire thread...

1) Any chances for a widget, similar to the media player widget? I think a similar sized one could fit all the functionality

2) I love this app, the functionality is great, very useful, etc. but I can't help but feel that it is lacking aesthetically. Although many here may feel appearance is unimportant, I think it makes thigs a great deal more enjoyable and lends itself to ui improvements. Any chances for an update there?
I suck at UI design, as I've said. The UI it has is totally user-contributed. I am up for changes if someone gets me the design and graphics. At some point I might theme it so all the options are available.

As for a widget.. maybe someday.. but not for a while and may not be worth it. Depends how popular the N900 still is when I have time again.
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 
Jef91's Avatar
Posts: 191 | Thanked: 129 times | Joined on Dec 2009 @ Bloomington, IL
#439
Anyone else having issues with pyRadio in the last few days? Mine has been able to "authenticate" but is unable to pull down a song list. Been this way for the last few days now.

~Jeff
 
Posts: 75 | Thanked: 59 times | Joined on Nov 2009 @ Gilbert, AZ, USA
#440
Originally Posted by fatalsaint View Post
Short answer on this one is No. All of the buffering/downloading of the song is done by the Media backend, in this case MAFW, and not by pyRadio itself. It started with libmad/libao with pianobar, then gstreamer, now MAFW. Buffering has gotten better along the way but there's no real way to "make" MAFW do anything since, AFAIK, it's completely undocumented.
Just a random thought, not a specific request for you to go recode the app or anything... I've been thinking about how to have a program like pyRadio have more control over things like buffering and pre-fetch while still retaining the benefits of using MAFW. How about if the app does the actual data retrieval from the Pandora service, and then exposes the music stream to the MAFW framework via a local http server (ie give MAFW a url like http://localhost:12345/stream.mpg).
 
Reply

Tags
bad tags, good tags, pyradio


 
Forum Jump


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