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.
Thanks for a great program. However, the box scores come out somewhat garbled on my machine. For example, today's Bal-Bos game has:
Quote:
BATTING
Team RISP: 1-for-7.abrera, E.
Team LOB: 5.
So the section under "BATTING" is garbled. The parts in table format --- the AB/R/H/etc for each batter, for instance --- come out fine. So it seems to have something to do with what the source code calls "data blobs", but I don't really know Python so that's as far as I can go. Or is my terminfo just screwy?
Today I tried the Orioles-Red Sox game: "Away" didn't work, but "Home" did... :-)
I will go on trying this...
I should stop trying, as you are wasting your time. Basic subscribers are not entitled to watch the Away live feed. You can only watch the Away feed on archive, and I think it has to be the next day also.
If you want a live Away feed, you need a Premium subscription.
SVN revision 653: Fixed box score formatting of batting/pitching data
Quote:
Originally Posted by warshall
Hi-
Thanks for a great program. However, the box scores come out somewhat garbled on my machine. For example, today's Bal-Bos game has:
So the section under "BATTING" is garbled. The parts in table format --- the AB/R/H/etc for each batter, for instance --- come out fine. So it seems to have something to do with what the source code calls "data blobs", but I don't really know Python so that's as far as I can go. Or is my terminfo just screwy?
First bug fix of 2015.
Some bloody whitespace was showing up as a text node in the blob XML. Not entirely sure how it was messing with the formatting but I added a check to discard text nodes that are nothing but whitespace and that has cleared up the formatting issue.
If you're not already following along on the SVN releases, look to the README or the Sourceforge wiki on how to check out the repo and update to the latest.
I should stop trying, as you are wasting your time. Basic subscribers are not entitled to watch the Away live feed. You can only watch the Away feed on archive, and I think it has to be the next day also.
If you want a live Away feed, you need a Premium subscription.
Is it always the home stream that's available to Basic? I've been looking for some way of determining whether a stream is available to basic subscribers or not from the XML listings. If it's always the home stream, as a rule, then I can just say that in the Wiki and try to remember this for next year.
Some bloody whitespace was showing up as a text node in the blob XML. Not entirely sure how it was messing with the formatting but I added a check to discard text nodes that are nothing but whitespace and that has cleared up the formatting issue.
If you're not already following along on the SVN releases, look to the README or the Sourceforge wiki on how to check out the repo and update to the latest.
Is it always the home stream that's available to Basic? I've been looking for some way of determining whether a stream is available to basic subscribers or not from the XML listings. If it's always the home stream, as a rule, then I can just say that in the Wiki and try to remember this for next year.
The MLB.TV webpages only say that if you want home and away coverage, then you have to have a premium subscription. They do not explicitly say that basic subscribers are sent the home feed. However, I have had a basic subscription for a number of years, and on live telecasts of "non-national" games in the regular season I am always sent the home TV feed. For "national" broadcasts such as ESPN's Sunday Night Baseball and the all star game, I get the "national" feed (but for these "national" games isn't that true of premium subscribers also when the blackout period is over, because there is no local feed?).
I have had very occasional cases when the TV feed has been the home feed but the radio overlay has been the away feed, but that has been very rare. I cannot recall an occasion when I have had the live away TV feed.
What the MLB.TV site also does not explain is the position on archives. In practice, from some period after a "non-national" game both home and away feeds are available on archive for basic subscribers, but I guess MLB.TV could withdraw that at any time since it is not part of their T&Cs - they say basic subscribers get an archive, but not that it contains home and away feeds.
As far as mlbviewer goes, I should leave things as they are. If you wanted to, you could add some explanation about feeds in the program's README, but I wouldn't try to "hard wire" a home-feed-only policy into the program for basic subscribers. All of this could change.
My ideal fix for this would be something along the lines of this:
Code:
1. Query subscription level from mlb servers after login.
2. Determine subscription level of streams from the listings xml or json files.
3. Filter available streams appropriately.
I *may* have seen the first transaction before back when I was sniffing the login code. That was years ago and I may be wrong or too late.
I cannot however seem to determine subscription level of a stream either in listings files or in media request transactions.
Anyway, I won't be taking anecdotal evidence for determining stream privileges.
I can however enhance the error message and I have been wanting to re-work the logs for a long time.
If you still have a basic subscription, can you reproduce this with a live game and post one of the (un)successful-[12].xml files?
So far, I have seen two of those and neither had the notAuthorizedStatus. I'd like to see what else is included in that response that might confirm our suspicion and/or give us a definitive pattern to match on for a better error message.
I can no longer get the nexdef/mlbhls streams to work as of today. The rtmp streams still work OK. As I have done a system upgrade, possibly that has broken something. Are other people still getting the nexdef streams to work?
I can no longer get the nexdef/mlbhls streams to work as of today. The rtmp streams still work OK. As I have done a system upgrade, possibly that has broken something. Are other people still getting the nexdef streams to work?
I can still watch live and archived nexdef, and you can too by downloading the virtual machine version of mlbviewer. Although the VMV needs to be updated with a couple of bug fixes. I am looking to enhance it to auto-update on boot.
I wonder if you didn't run into the certificate issue that was discussed here just a few pages back.
I recommend using some combination of test/nexdef.py and mlbplay.py to help debug and take the curses GUI out of the picture.
This will retrieve just the base64 url which you can then manually feed to mlbhls to isolate mlbhls from mlbviewer if you suspect the certifcates mlbhls uses.
So far, I have seen two of those and neither had the notAuthorizedStatus. I'd like to see what else is included in that response that might confirm our suspicion and/or give us a definitive pattern to match on for a better error message.
Here is an unsuccessful2.xml file from an unauthorized failure when trying to watch a live away stream:
I wonder if you didn't run into the certificate issue that was discussed here just a few pages back.
It's not a certificate issue. It authenticates OK. The stream starts but then hangs. I suspect it might be a result of updating a library used by mlbhls.
It's not a certificate issue. It authenticates OK. The stream starts but then hangs. I suspect it might be a result of updating a library used by mlbhls.
I have found the problem, and I partly mispoke: it is certificate related, sort of. I do have the relevant root Valicert certificate installed, but I suspect the latest version of libcurl barfs on mlbtv including the root certificate in its certificate chain. For the moment I have resolved it by reinstalling an old version of curl. I will need to look at a better fix - I suspect there is a curl option somewhere that may deal with it.
As my team just played and won their first extra innings affair tonight, I thought it would be a good time to remind folks that the extra innings frames in line score view (b) can be seen with the right arrow key and left arrow back to previous nine innings.
Also, while I don't display the extra frames in innings view, if you wanted to jump to the top of the 13, that's no different than jumping to the top of the 1st. (i) to innings and "t13" for top 13 or b13 for bottom 13.
I have found the problem, and I partly mispoke: it is certificate related, sort of. I do have the relevant root Valicert certificate installed, but I suspect the latest version of libcurl barfs on mlbtv including the root certificate in its certificate chain. For the moment I have resolved it by reinstalling an old version of curl. I will need to look at a better fix - I suspect there is a curl option somewhere that may deal with it.
When you get it sorted with a proper fix, can you describe a way to confirm and fix the problem? I will add this information to the Wiki.
Glad to know you're back in business and thanks for the xml.
SVN revision 654: Improved notAuthorizedStatus error and log messages
Changing the error message for notAuthorizedStatus errors.
Quote:
ERROR: You are not authorized to view this content.
If you are a basic subscriber, try the home stream.
See /home/user/.mlb/log for more details.
Also added the missing log message that should have been there this whole time.
Quote:
04/23 22:54 | Received a notAuthorized status. Response was saved in /home/user/.mlb/unsuccessful-2.xml.
At least it now points to the unsuccessful-2.xml file which will help me debug any future notAuthorizedStatus errors if they are something other than basic subscriber stuff.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.