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.
Been a long while since I posted in this thread. Just wanted to check in and thank you again for all your work. I got a Roku for the TV right next to my computer, so I hadn't been using mlbviewer for a season or two. However, now that the Phillies are horrible, I've been watching a second, more competitive game in the browser while the Phils pathetically lose on the TV. Got sick of the "full screen" mode of the browser player not staying full screen in one monitor when I start doing something on my second monitor, so today I just checked out the most up-to-date version of mlbviewer and things are good again. Better than ever. Thanks!
If you've been away for even a season, you should surely notice there are a ton of new features in mlbviewer 2013.
SVN revision 518: mlbcomvideos.py renamed to mlbvideos.py and mlbstats.py !!!
Renaming mlbcomvideos.py to mlbvideos.py
But more importantly...
Finally releasing an "alpha" version of mlbstats.py
Default view will be Pitching leaders sorted on ERA.
Switch between pitching and batting leaders using 'p' and 'b' keys.
Change the sort column with the 's' key.
Change the sort order (default, ascending, and descending) with the 'o' key. (Default picks some sensible defaults like ascending for ERA, WHIP, and L but ascending for the rest.)
Toggle between current season and all-time leaders with the 'n' key.
In All-Time, you can toggle between all-time and active players with the 'a' key.
You can also filter stats based on team using the 't' key and one of the two or three letter team codes (see README for the team codes or mlbplay.py with no arguments.)
Any player can be expanded to career stats with the Enter key.
Finally, the "favorite=" is flag is supported for highlighting players on the favorite team. However, mlbstats.py uses a different config file ($HOME/.mlb/statconfig) than mlbviewer.py.
And of course, all of these keys are viewable in the help screen with the 'h' key.
The stats, especially in all-time mode, are longer than 80 columns so you'll have to expand the terminal or maximize it if you want to see all columns.
On the roadmap for future revisions:
-Add more stats e.g. page 2 from mlb.com statistics.
-Add triple crown leaders
-Add splits (pre/post All-Star break, post-season, etc)
-Add ability to filter on year
-Add ability to filter career stats on ranges of year
On the roadmap for mlbviewer:
-Expand standings view to show additional columns like interleague, vs divsion, etc
-Add Wildcard Games Back to standings
I am releasing what I have now of mlbstats.py because I am going to become busy with moving and a work project again so it's better to have some extra eyes playing with the mlbstats.py code and telling me where the bugs may be and what features you want.
$ python mlbviewer.py
Traceback (most recent call last):
File "mlbviewer.py", line 977, in <module>
curses.wrapper(mainloop, mycfg, mykeys)
File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper
return func(stdscr, *args, **kwds)
File "mlbviewer.py", line 163, in mainloop
listwin.statusWrite(mysched.error_str,wait=2)
AttributeError: MLBSchedule instance has no attribute 'error_str'
$
With daftcat's schedule keeping him busy this week does anyone know of a workaround to this? Not only would I like to use mlbviewer to get caught up with the weekend's action but I got a free trial to mlb.tv for participating in the Final Vote (a trial that started Friday and ends tomorrow, the cheap buggers) and I'd like to check out all of mlbviewer's abilities while I have the trial.
I thought I fixed this early this season knowing the All-Star break always gives mlbviewer trouble. Looks like I didn't carry over enough of the old code into the rewrite. I have fixed it properly now.
BTW, the All-Star Game is national blackout. They really screwed you on this trial. You get all-you-can eat archives but only three days of live games. Hopefully your trial extends long enough to see the ASG once it's archived.
It turns out I completely misread the email this year.
Quote:
Thank you for participating in the 2013 All-Star Game Final Vote. We would like to reward you for being such a loyal fan of Major League Baseball by offering you a two week free trial of MLB.TV, valid from July 12-26, 2013.
They're not being cheap buggers, I'm wearing my arse for a hat again. I'll snag the update and play to my heart's content. Plus my boys in blue are on the [l]east coast after the break so I should be able to enjoy some live baseball for a change. Zang!
It turns out I completely misread the email this year.
They're not being cheap buggers, I'm wearing my arse for a hat again. I'll snag the update and play to my heart's content. Plus my boys in blue are on the [l]east coast after the break so I should be able to enjoy some live baseball for a change. Zang!
If you live in LA, then nope. Doesn't matter where they play. If you live in their blackout region, they could be playing in Iceland and you'll still be blacked out.
If you live in LA, then nope. Doesn't matter where they play. If you live in their blackout region, they could be playing in Iceland and you'll still be blacked out.
As my /nic says I'm in Beantown, I just bleed Blue. 8) And last night my wifi signal was such a joke I didn't even vote for MVP. In fact I forgot about the game completely. I bet if Puig had won the Final Vote he would have seen some playing time and the NL wouldn't have gotten shut out.
/me isn't going to make the rather easy joke about Corbin possibly playing the part of Brandon League last night. Partly since it wasn't a save situation.
As my /nic says I'm in Beantown, I just bleed Blue. 8) And last night my wifi signal was such a joke I didn't even vote for MVP. In fact I forgot about the game completely. I bet if Puig had won the Final Vote he would have seen some playing time and the NL wouldn't have gotten shut out.
/me isn't going to make the rather easy joke about Corbin possibly playing the part of Brandon League last night. Partly since it wasn't a save situation.
I used to travel to NJ and Montreal on business. One of my favorite things about the East Coast is coming back to my hotel room, after a long day, after dinner and drink at a pub, and tucking into some West Coast baseball at 10 o'clock at night. Good way to unwind and fall asleep.
My current apartment complex and my Comcast cable modem make it really hard to enjoy a full game of MLB.TV. Between the wifi collisions of super-saturated wifi channels and the congestion in the cable network, I am so glad I am moving in a couple of weeks. I may even take the speed cut down to DSL just to get myself some dedicated bandwidth again.
So I just wanted to say part of the reason why I am not very active with mlbstats/mlbviewer much right now is that I have found all the work I put into mlbviewer rewrite enormously useful in my day job. I think my off-season project will be making the mlbListWin, mlbKeyBindings, and mlbConfig classes generic enough for rapid curses GUI development as I have two work projects plus two mlb-related projects (mlbviewer and mlbstats) using similar or same base classes. It would be nice to be able to make fixes/improvements to a generic ListWin class and have all of the projects immediately reap the benefits.
That is to say, the awesome love I receive from mlbviewer fans inspired me to rewrite mlbviewer in a way that has made my day job much easier.
So I just wanted to say part of the reason why I am not very active with mlbstats/mlbviewer much right now is that I have found all the work I put into mlbviewer rewrite enormously useful in my day job. I think my off-season project will be making the mlbListWin, mlbKeyBindings, and mlbConfig classes generic enough for rapid curses GUI development as I have two work projects plus two mlb-related projects (mlbviewer and mlbstats) using similar or same base classes. It would be nice to be able to make fixes/improvements to a generic ListWin class and have all of the projects immediately reap the benefits.
That is to say, the awesome love I receive from mlbviewer fans inspired me to rewrite mlbviewer in a way that has made my day job much easier.
Um, that rules.
Not sure what else to say other than that's great news and that this is why I love free software. So congrats -- it's great to hear that your terrific work not only lets you and us enjoy baseball but is directly advancing your professional career as well!
For the above request url is always empty. Is this due to authentication?
Absolutely due to authentication. If you could get the audio url just from making the findUserVerifiedEvent request, MLB.TV would be out of business by now.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.