LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 04-08-2008, 01:32 AM   #136
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,748

Rep: Reputation: 76

By the way, now that I have this working, I have to give you mad props. This is really cool.

Thanks!
 
Old 04-08-2008, 06:37 AM   #137
jkr
Member
 
Registered: Apr 2008
Posts: 115

Rep: Reputation: 15
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?
 
Old 04-08-2008, 09:22 AM   #138
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
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.
 
Old 04-08-2008, 10:58 AM   #139
ilikerobots
LQ Newbie
 
Registered: Apr 2008
Posts: 17

Rep: Reputation: 0
When setting SPEED = 1200, I get the error:

Code:
Traceback (most recent call last):
  File "./mlbviewer.py", line 342, in <module>
    curses.wrapper(mainloop,datadct['user'],datadct['pass'])
  File "curses/wrapper.py", line 44, in wrapper
  File "./mlbviewer.py", line 303, in mainloop
    available = getListings(mysched)
  File "./mlbviewer.py", line 233, in getListings
    ('I','W', 'F')]
KeyError: '1200'
Speeds of 400 and 800 work fine, though.

Oh, and thank you, thank you, thank you jkr!
 
Old 04-08-2008, 11:02 AM   #140
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
1200 simply won't work. It's not available as a direct stream but only through a Win/Mac plugin which does packet "swarming".
 
Old 04-08-2008, 11:56 AM   #141
ilikerobots
LQ Newbie
 
Registered: Apr 2008
Posts: 17

Rep: Reputation: 0
Quote:
Originally Posted by Theophile View Post
1200 simply won't work. It's not available as a direct stream but only through a Win/Mac plugin which does packet "swarming".
Well, jkr will just need to write a quick python script that swarms.
 
Old 04-08-2008, 11:58 AM   #142
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,748

Rep: Reputation: 76
Quote:
Originally Posted by jkr View Post
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'm using Etch but I think some testing packages might have sneaked onto my system. ;-) I forget what it was for, but I know I had to move to testing for something. Then one day I selected something simple and it wanted to upgrade about 40 packages and I reverted back to etch in my sources.list.

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
Package: python-clientform
Status: install ok installed
Priority: extra
Section: python
Installed-Size: 280
Maintainer: Debian/Ubuntu Zope Team <pkg-zope-developers@lists.alioth.debian.org>
Architecture: all
Version: 0.2.2-3
Replaces: python2.3-clientform (<< 0.2.2), python2.4-clientform (<< 0.2.2)
Provides: python2.4-clientform
Depends: python, python-central (>= 0.5.8)
Conflicts: python2.3-clientform (<< 0.2.2), python2.4-clientform (<< 0.2.2)
Description: module for handling HTML forms on the client side
 ClientForm is a Python module for handling HTML forms on the client side,
 useful for parsing HTML forms, filling them in and returning the completed
 forms to the server. It developed from a port of Gisle Aas' Perl module
 HTML::Form, from the libwww-perl library, but the interface is not the same.
 .
 Homepage: http://wwwsearch.sourceforge.net/ClientForm/
Python-Version: all
matthew@tango:~$
 
Old 04-08-2008, 12:15 PM   #143
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,748

Rep: Reputation: 76
Quote:
Originally Posted by Theophile View Post
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.
I never just listen to the audio but I imagine if I did, I'd want to use mpd since I use a php/mpd solution for all my audio needs. My Linux box is more an appliance than a desktop.

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.)
 
Old 04-08-2008, 12:29 PM   #144
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,748

Rep: Reputation: 76
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. =^^=
 
Old 04-08-2008, 12:30 PM   #145
dmandell
Member
 
Registered: Apr 2008
Posts: 30

Rep: Reputation: 15
Quote:
Originally Posted by jkr View Post
T
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'm sure there are a lot of people out there that would appreciate being able to select audio-only streams (myself included), so I think it would be a very useful addition.

Thanks for all your work on this,

d
 
Old 04-08-2008, 12:51 PM   #146
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
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?
 
Old 04-08-2008, 01:22 PM   #147
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,748

Rep: Reputation: 76
Quote:
Originally Posted by Theophile View Post
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?
According to this thread, http://www.musicpd.org/forum/index.p...c=1348.msg5819

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.
 
Old 04-08-2008, 01:54 PM   #148
jkr
Member
 
Registered: Apr 2008
Posts: 115

Rep: Reputation: 15
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.
 
Old 04-08-2008, 02:00 PM   #149
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,748

Rep: Reputation: 76
Quote:
Originally Posted by jkr View Post
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.
I haven't watched any live games with your script yet. I got the record functionality hacked in. I'll let you know if I have problems recording a live game just as soon as the KC game starts.
 
Old 04-08-2008, 02:07 PM   #150
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,748

Rep: Reputation: 76
Quote:
Originally Posted by daftcat View Post
I haven't watched any live games with your script yet. I got the record functionality hacked in. I'll let you know if I have problems recording a live game just as soon as the KC game starts.
I'm thinking more about this, and recording a game is really only useful if I can schedule the task. Otherwise, I'd have to be right there when the game starts. Does python have an ability to schedule tasks?
 
  


Reply

Tags
help, install, installation, instructions, seek, vlc, windows


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mlb.com gameday audio stream statmobile Linux - Newbie 6 05-06-2008 10:16 PM
link dies intermittently-seemingly at random- between win<->linux not linux<->linux?? takahaya Linux - Networking 10 03-09-2007 10:37 PM
triple boot linux/linux/linux No Windows involved toastermaker Linux - Newbie 12 03-02-2006 10:40 PM
Redhat (rhel v2.1) bootup problem with linux (linux vs linux-up) namgor Linux - Software 2 06-24-2004 02:49 PM


All times are GMT -5. The time now is 05:48 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration