By the way, now that I have this working, I have to give you mad props. This is really cool.
Thanks! |
Thanks, and glad you got it working.
Interesting about the errors. What version of ClientForm are you using? And where is it from -- you're using Etch, right? Or unstable? I wonder if the author made ClientForm more tolerant, or if there are certain distro specific patches. If it's necessary, I'll look into having the script tidy up the HTML itself. I might ask you to test it out using whatever your original config was, though, if that's okay. Speaking of ClientForm, a general note for folks who are annoyed by that deprecation warning that appears each time you select a game. I have gotten rid of it in the new version, but if you want to get rid of it now, find the following line: forms = ClientForm.ParseResponse(fp) and change it to forms = ClientForm.ParseResponse(fp, backwards_compat=False) Finally, a question for folks here: another feature that wouldn't be too hard to implement would be to have a few playback options on each line (video, audio, condensed if archived). Up-down would switch games, right-left would switch options, and then some other controls would switch days. Each playback could have its own default player (mplayer, xmms, etc). So, the question -- is that something that people would use, or would it just clutter up the interface? |
I think it would be a worthwhile addition. Using mplayer for video is probably what most people would choose, but you need a player with a GUI for audio-only, otherwise you'd have to kill it from the command line. So if video and audio feeds will be integrated into the same interface, I do think you'd need to have the ability to use different players for each.
|
When setting SPEED = 1200, I get the error:
Code:
Traceback (most recent call last): Oh, and thank you, thank you, thank you jkr! |
1200 simply won't work. It's not available as a direct stream but only through a Win/Mac plugin which does packet "swarming".
|
Quote:
|
Quote:
I'd be happy to test whatever you come up with. That's what I do for a living. ;-) Here's what dpkg says about clientform: Code:
matthew@tango:~$ dpkg --status python-clientform |
Quote:
Speaking of which, jkr, is there a way to add DISPLAY env variable to mlbviewer? I guess I could wrap it up in my original mlbplay script since that also tweaks my screensaver settings. I'll give that a try tonight. For my specific setup, I use the local display from a remote machine. I like watching a game (or having it on in the background) from across the room while still having my primary laptop free to do whatever it is I do (which is usually hacking away at some project or another.) |
Can't see any video from across the city, but it seems like it wraps well within my mlbplay script. :-)
My cat might be wondering WTF if I left the stereo on this morning. =^^= |
Quote:
Thanks for all your work on this, d |
Using the Firebug method, I tried to open an audio stream using my MPD client. I got this in the mpd error log: "Input does not appear to be a mp3 bit stream"
Can mpd play wma streams at all? |
Quote:
It sounds like you can configure mplayer to decode formats mpd doesn't natively support. As long as I'm going to that trouble, I'd probably use mplayer directly. The only advantage I can see to using mpd would be if I wanted to hack mlbviewer to trade curses output for a web page interface instead. That's not a bad idea, actually, but I'm not sure how many other users would find this useful. As I'd rather blow my bandwidth on the audio and video even if I'm not always watching the video, I'd rather figure out now to download the games and watch them locally. I'm sure mplayer has some kind of filesystem output plugin. I just haven't tried really hard to find out about it. If it's not too difficult, I might trade the curses for a web interface so I can select games to "record" from work so they'll be ready for me when I get home. Of course, this is probably mlb.com's worst fear of supporting Linux. ;-) At least I'm not a torrent user. |
Is anyone else having a problem with a concurrent connection error on live games? I can't tell if it's their fault, the script's fault, or if they just don't like me all of a sudden.
|
Quote:
|
Quote:
|
All times are GMT -5. The time now is 04:03 PM. |