LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 07-20-2008, 12:50 PM   #796
quonset
LQ Newbie
 
Registered: Apr 2008
Posts: 19

Rep: Reputation: 0

I like the favorites feature, but when one of the favorited teams is playing in the last game of the day, the underlining continues to appear on any blank lines between that listing and the "Status" footer. Not sure if something similar happens if use_colors is defined.

I'm using revision 93, and everything else about mlbviewer is as great as usual!
 
Old 07-21-2008, 03:24 AM   #797
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by quonset View Post
I like the favorites feature, but when one of the favorited teams is playing in the last game of the day, the underlining continues to appear on any blank lines between that listing and the "Status" footer. Not sure if something similar happens if use_colors is defined.

I'm using revision 93, and everything else about mlbviewer is as great as usual!
Good catch. I've fixed this is revision 94.

Any reason why you're not using colors? They're pretty.

Actually, one pain in the butt drawback of colors is that I can't just use whatever background color you've defined in your xterm settings. If your background color is not one of the eight curses supports (or worse if you are using transparency), then the highlighting looks very blocky rather than just a different foreground color. This is why I give you the option to underline if you can't match your background color to your xterm's background.
 
Old 07-21-2008, 03:32 AM   #798
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
No feedback on bookmarks? Has anyone tried the bookmark code yet?

Let me give you an idea of how you can use it (besides the obvious.) Let's say your favorite pitcher is Lincecum (Jesse's favorite) and you know he's pitching on Wednesday. But, you don't know if you'll actually get to watch the game on Wednesday (even from the archive) because you're working on your dissertation (like Jesse is.) You can go forward in the listings (assuming the listings go out to Wednesday, and they usually go out a few days into the future) and bookmark it. If Wednesday comes and goes and you missed his start, you can just open up your bookmarks and watch that game whenever you can find time for it. In this way, it's kind of like Tivo. The only drawback to this, is that if you're a condensed game watcher, bookmarking into the future will record the listing before the condensed game is available and you'd actually have to go back to the original listing to watch the condensed game.

Someone give bookmarks a go and tell me what you think.

Cheers!
daftcat
 
Old 07-21-2008, 05:44 AM   #799
lephio
Member
 
Registered: Jun 2008
Posts: 46

Rep: Reputation: 15
svn: 94

Bookmarks are nice.
1) I can't use "accented" letters, like "" and "". In italian they are very important.
2) If i make a typo, i can't edit my bookmark
3) I pressed h(help) and i read lot of keybindings.. they are becaming more and more.. maybe an "ordered-and-categorized" list could be easiest to read.
4) Just for usability: to exit from bookmark page i pressed "esc" many times before remembering the "L" keybind.
5) edit: Maybe impossible to do, but it would be great adding bookmark DURING play (i usually forget that things..)

That's it! let's go twins!

Last edited by lephio; 07-21-2008 at 08:42 AM.
 
Old 07-21-2008, 11:06 AM   #800
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by lephio View Post
svn: 94

Bookmarks are nice.
1) I can't use "accented" letters, like "" and "". In italian they are very important.
2) If i make a typo, i can't edit my bookmark
3) I pressed h(help) and i read lot of keybindings.. they are becaming more and more.. maybe an "ordered-and-categorized" list could be easiest to read.
4) Just for usability: to exit from bookmark page i pressed "esc" many times before remembering the "L" keybind.
5) edit: Maybe impossible to do, but it would be great adding bookmark DURING play (i usually forget that things..)

That's it! let's go twins!
1) I have no way of testing this because I don't have those keys. Maybe I can change my locale in Windows and try it here. What happens with accented characters? Do they just not show up or do they somehow break the app or feature?

2) I can probably provide a method to edit the bookmark title.

3) I'll look into this. Our keybindings presently serve both a help purpose, but also they can be copied and pasted for documentation. Python syntax for dictionaries is a lot more readable than for ordered lists. We might have to sacrifice readability for usability.

4) I can probably map 'Esc' to 'L'.

Fixed. Available in svn revision 95.

5) Yeah, that is impossible to do in our current architecture because we surrender control to the player once a stream is selected. A possible workaround is to use a backgrounded player command such as:

Code:
video_player='xterm -e mplayer -cache 2048 -quiet %s &'
The %s is then string substituted for the url (we already support this.) We might lose some error detection though. Give it a try and let me know how that works.
 
Old 07-22-2008, 11:38 AM   #801
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
New in SVN

  • xterm default colors: I found a way to use xterm's settings for colors so you don't have to match bg_color to your xterm's color. Presumably this also works for transparency but I haven't tested that. Specify xterm as the bg_color and it will use your xterm's background color setting.
    EDIT: xterm will be the new default so if you are specifying a bg_color to match your xterm, you can remove that setting from your config. bg_color option may be removed in future releases.
  • Added ability to edit the title of a bookmark. In the bookmarks screen, m will edit the title of the selected bookmark.
  • Added a 'Refreshing Listings...' status message to Jump so jump doesn't appear to be doing nothing.
  • Help is now sorted in dictionary order. It's a start. I would like to categorize the help screen but this is, I hope, an improvement over an unsorted help.
  • Mapped ESC to L for listings.

Last edited by daftcat; 07-22-2008 at 11:46 AM.
 
Old 07-22-2008, 12:41 PM   #802
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Cool! I tested with transparency and the new 'xterm' color works with transparency.

If there are no objections, I will remove bg_color option and rename fg_color to favorite_color. This will be in the next revision unless someone voices an objection.

By the way, I think I'm going to take lephio's wishlist as my final tasks for the next official release.

1. Produce a categorized and ordered help screen.
2. Add international support to bookmarks (I'm not sure if this can be done, but I'll look ino it.)

Are there any other fixes or features you guys are looking for to be in the upcoming beta? Yes, I think I'm going to call the next release our first beta.

Also, I'm going on vacation in three weeks so make your requests now because I'll be pretty damn busy with my real job these next three weeks.
 
Old 07-23-2008, 01:03 PM   #803
lephio
Member
 
Registered: Jun 2008
Posts: 46

Rep: Reputation: 15
what about the "flickering" of videos? i'm watching the CG of last MIN@NYY (game1) and in the 4th inning video begins to flicker.

it's not the first time that happens.

same thing if i watch the game with VLC.

Can any windows user try to watch that CG through mlb.com site, so we can find out if is the stream corrupted or if it's a linux problem?

Last edited by lephio; 07-23-2008 at 06:03 PM.
 
Old 07-23-2008, 08:15 PM   #804
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by lephio View Post
what about the "flickering" of videos? i'm watching the CG of last MIN@NYY (game1) and in the 4th inning video begins to flicker.

it's not the first time that happens.

same thing if i watch the game with VLC.

Can any windows user try to watch that CG through mlb.com site, so we can find out if is the stream corrupted or if it's a linux problem?
Flickering, burping, and other video indigestion is definitely nothing I can do in mlbviewer but I can check it later tonight to tell you what the windows experience is. My guesses are:
- Video servers are going through growing pains.
- Your ISP (or any ISP between the media server and yours) is hiccupping the traffic somewhere and not implementing any QoS strategies to assure that streaming video streams smoothly.

From someone who works with networks all day long, I'm pretty damn impressed at what mlb.tv has been able to accomplish. Though even with my awe at the technical feat, I can still get annoyed when streams start to trickle.
 
Old 07-24-2008, 01:19 AM   #805
Wolfvorkian
Member
 
Registered: Sep 2007
Distribution: Arch
Posts: 108

Rep: Reputation: 15
Quote:
Originally Posted by daftcat View Post
No feedback on bookmarks? Has anyone tried the bookmark code yet?

Let me give you an idea of how you can use it (besides the obvious.) Let's say your favorite pitcher is Lincecum (Jesse's favorite) and you know he's pitching on Wednesday. But, you don't know if you'll actually get to watch the game on Wednesday (even from the archive) because you're working on your dissertation (like Jesse is.) You can go forward in the

<snip>

Cheers!
daftcat
I wish you had not broadcasted as to when you are going on vacation, that is when MLB will put the hammer down and screw with MLBViewer.I'm sure being they are control pigs, they despise it.

Jesse's guy Lincecum is something else. First time I ever saw him I thought I had somehow tuned into a high school game somewhere and the kid threw like a right-handed Sandy Koufax. After reading the SI story about him, I see where my observations had some validity being his dad copied Koufax's violent push off the mound or however you want to describe it. This guy may very well be a genetic freak like Mantle, Bobby Hull, Jim Brown, Bonds, etc.

Enjoy your time off. If they screw with the script and Jesse isn't around to fix it, we can always revert back to using firebug until you return and figure out how to get around them again.
 
Old 07-24-2008, 10:24 AM   #806
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by Wolfvorkian View Post

Enjoy your time off. If they screw with the script and Jesse isn't around to fix it, we can always revert back to using firebug until you return and figure out how to get around them again.
I'm bringing my laptop with me. I'll likely have wifi in most, if not all of the hotel rooms I'll be in, and I'm a bit of an insomniac. That said, I probably won't be putting much time online. It is a vacation, after all.
 
Old 07-24-2008, 10:31 AM   #807
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
SVN Revision 99

  • Provides categorized Help (It's a little cramped but until I implement real scrolling, this is how it will have to be.)
  • Deprecating fg_color and bg_color options. This is a transitional revision. fg_color and bg_color will still work but I encourage you to replace fg_color with the new name, favorite_color. bg_color will be removed and will default to your xterm's setting for background color.

fg_color will be removed and replaced with favorite_color probably in the next revision but favorite_color is working right now if you want to get a head start and change your config file in this revision.
 
Old 07-25-2008, 04:45 AM   #808
animus144
LQ Newbie
 
Registered: Jul 2008
Posts: 1

Rep: Reputation: 0
Thank you

Thank you guys for actively developing this. Mlb.com keeps making it harder for me to watch mlb.tv while I'm running linux. Anyway, mlbviewer is my current solution, and I actually prefer it to firefox->mediaplayerconnectivity.

Thanks a bunch,
Eric
 
Old 07-25-2008, 11:33 AM   #809
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
Wanted to stick my head back in here to ask a question. Is there a way to get mlbviewer to automatically begin playing a specified game at startup?

I want to create a cron job to make it begin playing the Sox/Yanks game at 7:05 tonight, with no user intervention. Can this currently be done?
 
Old 07-25-2008, 12:46 PM   #810
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by Theophile View Post
Wanted to stick my head back in here to ask a question. Is there a way to get mlbviewer to automatically begin playing a specified game at startup?

I want to create a cron job to make it begin playing the Sox/Yanks game at 7:05 tonight, with no user intervention. Can this currently be done?
Mlbviewer? No. You can do it with mlbgameid.py in the test directory. First, you'll need to find the stream Id. The easiest way to do that is to select your game (video or audio) even though it's in the not yet available state. It will go through the whole process of querying the servers for the stream url and fail. But...in the log ($HOME/.mlb/log), you'll see a line like this:

Code:
2008-07-25 09:21:11.477507
Querying enterworkflow.do for { 'gameid' : 2008/07/25/nyamlb-bosmlb-1, 'streamid' : 780112, 'streamtype' : video, login: True}
In your cronjob, you can do something like:

Code:
5 7 25 7 * /path/to/python /path/to/mlbviewer/test/mlbgameid.py 780112
I would test this before you rely on it since cron usually has a reduced environment. The way to test it is to have it execute a few minutes after you've created the job and tee the output to a log file like:

Code:
/path/to/python /path/to/mlbviewer/test/mlbgameid.py 780112 | tee /tmp/mlbgameid.log
Then you can check your log and check your mail to see if the cronjob worked or if it had environment issues. You can also write a wrapper script that sets up the proper environment like:

Code:
#!/bin/bash

PATH=/insert/your/path/here
LD_LIBRARY_PATH=/your/library/path/here

python /path/to/mlbviewer/test/mlbgameid.py $1 > /tmp/mlbgameid-$1.log 2>&1
Check that last part for bash syntax, but that should copy stderr onto stdout and redirect the output to the log file.

CAVEAT: Neither mlbgameid.py nor mlbviewer are 100% reliable as I often still run into Login/Logout unsuccessful messages as well as the occasional cranky media server. This is the primary reason why I haven't implemented any auto-play feature yet. Probably after my vacation, I'll add in some code to fix the unsuccessfuls (it's a META-REFRESH page from mlb.com that says something like, "Servers are busy. This page will refresh in 5 seconds." but the REFRESH is supposed to happen on the browser end and python doesn't handle it.)

Good luck!
 
  


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 11:16 PM
link dies intermittently-seemingly at random- between win<->linux not linux<->linux?? takahaya Linux - Networking 10 03-09-2007 11:37 PM
triple boot linux/linux/linux No Windows involved toastermaker Linux - Newbie 12 03-02-2006 11:40 PM
Redhat (rhel v2.1) bootup problem with linux (linux vs linux-up) namgor Linux - Software 2 06-24-2004 03:49 PM


All times are GMT -5. The time now is 12:13 AM.

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