LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-12-2013, 03:05 PM   #4111
charlie460
LQ Newbie
 
Registered: Aug 2011
Posts: 29

Rep: Reputation: Disabled

Quote:
Originally Posted by daftcat View Post
Also, I would love to find the old Baseball's Best games. I seem to only be able to find Baseball's Best Moments. If I want to watch or listen to one of the old classic games, I can only do that through the mobile app now.
Could this be because of MLB's new partnership with YouTube? They have been posting LOTS of classic games there.
 
Old 06-12-2013, 06:31 PM   #4112
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by charlie460 View Post
Could this be because of MLB's new partnership with YouTube? They have been posting LOTS of classic games there.
Oh... I didn't know about that.

I have checked in the code for 'mlbcomvideos.py' (still looking for a name if you have a better suggestion.)

In MLBviewer/mlbConstants.py, there are instructions for adding new pages. For example, the entire "More to explore" section is not yet added.

In other news, I just captured the request for standings from MLB.com's site. The standings are coming back as json pages with the correct query parameters. So a little reverse engineering of the queries and I should be able to use standings from MLB.com rather than Erik Ekberg's xmlstats API. This means I should be able to get near real-time standings.

I also have another feature up my sleeve now.
 
Old 06-13-2013, 02:58 AM   #4113
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
SVN revision 511: mlbcomvideos.py and "real-time" standings in mlbviewer

In case you missed the last few posts,

mlbcomvideos.py is a new program that lets you view a huge amount of video content from mlb.com. It's far from complete but still very functional. It uses top_plays_player= setting from mlbviewer config (~/.mlb/config) if present, or video_player= if top_plays_player= is not configured. As for video stream speeds, if your speed= parameter is set to 1800 or greater, the 1800K stream is preferred. Otherwise, the 1200K stream is preferred. In some cases, the 1800K stream is not available so the 1200K stream will be used. If neither the 1800K or 1200K stream are available (or the 1800K stream is not preferred, e.g. speed= < 1800), the 800K stream is selected.

To-do: Currently mlbcomvideos.py requests the newest 200 videos (but will often get only 150 or less from mlb.com servers depending on how many items are actually available.) I plan to enhance the auto-scrolling feature of mlb.com where scrolling past the end of the video list will trigger a new request for older video content.)

The other big change in revision 511 (and why I couldn't go to sleep two hours ago when I was feeling sleepy) is that I have replaced the standings code from using xmlstats api (Erik Berg's XML standings) to JSON standings from mlb.com. The two biggest gains as a result is that standings are now near real-time (instead of updated just once a day), and if you are using favorite= with colors (use_color=1), your team(s) will be highlighted in color in the standings.

Enhancements planned: mlb.com standings give much more information including wildcard standings. I'm likely going to implement horizontal scrolling (like using the arrow keys to see extra inning frames in line score view) to see the extra columns.
 
Old 06-13-2013, 11:42 AM   #4114
BostonPeng
Member
 
Registered: Jul 2009
Location: Boston, MA
Distribution: SolydK Testing + KDE 4.9.5
Posts: 113

Rep: Reputation: Disabled
I love the new features! It looks like the only thing I may need my browser for is to get videos in game order (something I'm really surprised MLBAM hasn't figured out a way to do by now) and to see the Daily Dash and Top 5 Plays of the Day. I'm glad to see I can scroll through innings on the linescore view. My Dodgers went 12 innings and I didn't realize I could scroll horizontally to see the last three innings, although I really wish I could swap the numbers for that last inning.
 
Old 06-13-2013, 12:23 PM   #4115
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by BostonPeng View Post
I love the new features! It looks like the only thing I may need my browser for is to get videos in game order (something I'm really surprised MLBAM hasn't figured out a way to do by now) and to see the Daily Dash and Top 5 Plays of the Day. I'm glad to see I can scroll through innings on the linescore view. My Dodgers went 12 innings and I didn't realize I could scroll horizontally to see the last three innings, although I really wish I could swap the numbers for that last inning.
It turns out that adding video sections is really easy. Send me one URL each for a Daily Dash video and a Top 5 Plays of the day and I'll get their categories added to the main menu.
 
Old 06-13-2013, 12:43 PM   #4116
BostonPeng
Member
 
Registered: Jul 2009
Location: Boston, MA
Distribution: SolydK Testing + KDE 4.9.5
Posts: 113

Rep: Reputation: Disabled
Quote:
Originally Posted by daftcat View Post
It turns out that adding video sections is really easy. Send me one URL each for a Daily Dash video and a Top 5 Plays of the day and I'll get their categories added to the main menu.
How about links to the pages where I find the videos each day? I threw them on my custom start page to help me get the videos every day.
 
Old 06-13-2013, 01:06 PM   #4117
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by BostonPeng View Post
How about links to the pages where I find the videos each day? I threw them on my custom start page to help me get the videos every day.
Done.

Thanks to charlie460, I have found that pretty much every video on MLB.com has an XML file associated with it. So even when it's not grouped together into a section like Daily Dash, it likely belongs to a search query and that category can be added to the main menu just by watching the requests go through in Web Console.

I still encourage you to visit mlb.com now and then because they put together a great site. Also, they aren't getting any ad revenue from my products so they should at least get a hit or three from us now and then.
 
Old 06-13-2013, 01:13 PM   #4118
BostonPeng
Member
 
Registered: Jul 2009
Location: Boston, MA
Distribution: SolydK Testing + KDE 4.9.5
Posts: 113

Rep: Reputation: Disabled
Quote:
Originally Posted by daftcat View Post
Done.

Thanks to charlie460, I have found that pretty much every video on MLB.com has an XML file associated with it. So even when it's not grouped together into a section like Daily Dash, it likely belongs to a search query and that category can be added to the main menu just by watching the requests go through in Web Console.

I still encourage you to visit mlb.com now and then because they put together a great site. Also, they aren't getting any ad revenue from my products so they should at least get a hit or three from us now and then.
Thanks! At the least I'll use the links in their Postgame Alert emails to see where the clips fall in the game to see which order I want to watch them in.
 
Old 06-13-2013, 01:19 PM   #4119
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by BostonPeng View Post
Thanks! At the least I'll use the links in their Postgame Alert emails to see where the clips fall in the game to see which order I want to watch them in.
May have figured out how to get highlights in game order. Might take a couple of days just because I like to shape the new code to behave with the old. Makes it easy to switch back and forth to compare and contrast. There's a single flag in the standings code that switches between the old xmlstats api and the new json code. There will probably be something like that for game highlights too.
 
Old 06-13-2013, 01:24 PM   #4120
BostonPeng
Member
 
Registered: Jul 2009
Location: Boston, MA
Distribution: SolydK Testing + KDE 4.9.5
Posts: 113

Rep: Reputation: Disabled
Quote:
Originally Posted by daftcat View Post
May have figured out how to get highlights in game order. Might take a couple of days just because I like to shape the new code to behave with the old. Makes it easy to switch back and forth to compare and contrast. There's a single flag in the standings code that switches between the old xmlstats api and the new json code. There will probably be something like that for game highlights too.
That's a surprise. Every time I see clips on their they're in an order that has nothing to do with the progress of the game itself. Btw, I tried running an svn up at the library and it went through without a hitch. I must have been trying at the wrong times in the past because I just got the update to revision 512.
 
Old 06-13-2013, 02:47 PM   #4121
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by BostonPeng View Post
That's a surprise. Every time I see clips on their they're in an order that has nothing to do with the progress of the game itself. Btw, I tried running an svn up at the library and it went through without a hitch. I must have been trying at the wrong times in the past because I just got the update to revision 512.
Oh. If they aren't in order on the website than I probably can't order them in the code. I just found another source for media highlights. I'll code it up anyway and see if there are any highlights in the json list that are not in the xml list.
 
Old 06-13-2013, 02:58 PM   #4122
BostonPeng
Member
 
Registered: Jul 2009
Location: Boston, MA
Distribution: SolydK Testing + KDE 4.9.5
Posts: 113

Rep: Reputation: Disabled
Quote:
Originally Posted by daftcat View Post
Oh. If they aren't in order on the website than I probably can't order them in the code. I just found another source for media highlights. I'll code it up anyway and see if there are any highlights in the json list that are not in the xml list.
I look forward to seeing if you find any new ones. I can't get enough of my boys in blue. 8)
 
Old 06-13-2013, 03:11 PM   #4123
BostonPeng
Member
 
Registered: Jul 2009
Location: Boston, MA
Distribution: SolydK Testing + KDE 4.9.5
Posts: 113

Rep: Reputation: Disabled
I just remembered last night's Dodgers game was the freebie for the day. Once I changed my config file to include my login info I can watch it!!! THANK YOU DAFTCAT!!!!
 
Old 06-14-2013, 11:38 AM   #4124
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
SVN rev 514: Added hitting and pitching stats

It's still a work in progress, but 'S' (uppercase s) will bring up Hitting stats sorted on AVG. Pressing 'S' again will change to Pitching stats sorted on ERA.

Still need to add code to change the sorting order.

Similar to everything else, if a player from your favorite= team(s) is in the stats (and use_color=True), he will get colored. I do think I need to add some TEAMCODE aliases for LAD and LAA because they are not using LA and ANA in the stats.

I also added 2013 All-Star Game coverage to mlbcomvideos.

If you are customizing keybindings, the stats feature uses the STATS action.
 
Old 06-14-2013, 11:50 AM   #4125
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by daftcat View Post
It's still a work in progress, but 'S' (uppercase s) will bring up Hitting stats sorted on AVG. Pressing 'S' again will change to Pitching stats sorted on ERA.

Still need to add code to change the sorting order.

Similar to everything else, if a player from your favorite= team(s) is in the stats (and use_color=True), he will get colored. I do think I need to add some TEAMCODE aliases for LAD and LAA because they are not using LA and ANA in the stats.

I also added 2013 All-Star Game coverage to mlbcomvideos.

If you are customizing keybindings, the stats feature uses the STATS action.
Shoot! That's a can of worms I just opened. Looks like I will also need to consider the following options:

- selecting NL or AL instead of MLB stats
- Splits
- Extra stats (default view cuts off at 80x24 but adds a few more columns if window is expanded or maximized); even still, there are two more pages of stats available but not displayed

Maybe options to consider:

- Year
- All-Time
- Teams

Starting to think that stats might be a good candidate to spin off yet another separate application rather than adding even more keybindings to mlbviewer.
 
  


Reply

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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:59 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration