Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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.
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.
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 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.
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.
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.
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.
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)
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!!!!
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.