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.
I've been getting this quite a bit lately, on TOR/NYY, I am in France, not a blackout area, the NYY feed results in this error (TOR works):
Code:
An error occurred locating the media URL: Stream URL not found in reply. Stream may not be available yet.
Can you follow the instructions for test/mediaxml.py on the last page? NYY has an in-market broadcast (Yankees on YES) that might be getting selected over the regular broadcast. If you can paste those statuses here, I might see if I'm picking the wrong broadcast.
I can't seem to connect to pastebin.com or I'd ask you to paste the whole unsuccessful-2.xml there. If you can reach them, do that. I might be able to reach them from work.
Basically, I can tell you nothing from that error message, but I can probably tell quite a bit from what's in your ~/.mlb/unsuccessful-2.xml.
For some reason I can no longer log into mlb.com. When I start mlbviewer I get
"Logging into mlb.com..."
"Something went wrong. A more descriptive error should be here."
"No listings available for this day."
If I try to change the day I get "There was a parser problem with the listings page."
All this while I can still log on to mlb.tv with my browser and watch games there.
Funnily enough, I can switch to the MiLB listings with M and even watch games there. If I then switch back to the major league listings with l, the program crashes.
Traceback (most recent call last):
File "./mlbviewer.py", line 1014, 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 181, in mainloop
mywin.statusRefresh()
File "/home/mgoetze/mlbviewer2013/MLBviewer/mlbListWin.py", line 250, in statusRefresh
+ len(speedstr) + len(hdstr) + len(coveragestr) + 2
TypeError: object of type 'NoneType' has no len()
For some reason I can no longer log into mlb.com. When I start mlbviewer I get
"Logging into mlb.com..."
"Something went wrong. A more descriptive error should be here."
"No listings available for this day."
If I try to change the day I get "There was a parser problem with the listings page."
All this while I can still log on to mlb.tv with my browser and watch games there.
Funnily enough, I can switch to the MiLB listings with M and even watch games there. If I then switch back to the major league listings with l, the program crashes.
Traceback (most recent call last):
File "./mlbviewer.py", line 1014, 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 181, in mainloop
mywin.statusRefresh()
File "/home/mgoetze/mlbviewer2013/MLBviewer/mlbListWin.py", line 250, in statusRefresh
+ len(speedstr) + len(hdstr) + len(coveragestr) + 2
TypeError: object of type 'NoneType' has no len()
Checked in fix for innings showing spoilers for home victories. I didn't realize this was happening again but looking at the code, I was actually only hiding home losses. Now I'm hiding both losses and victories again.
Haven't forgotten about adding wildcard games back to standings except it's not that straightforward. Current standings code can just process the standings from top to bottom straight into printable strings. Wildcard is held in a different data structure (from the same standings request) but sorted in wildcard order. So I either have to add a new window just for wildcard standings, or I have to convert my standings from a list of printable strings to some kind of indexed, yet ordered, structure where I can insert the WCGB, WCE#, and E# entries. I'll try to get it done this week. Even if my Royals are looking like too much of a long shot...
Phew, okay, I've figured out the puzzle of why mlbhls options -f and -F have been grabbing different streams, and how to get -F working in all players (including mplayer 1.1).
The playlist files for the game streams contain what looks like an encryption key every minute. mlbhls's -f option sets the start position to the specified key, while -F has simply been grabbing the line nearest to the time specified. (So mlbhls -f 6 would start at the sixth key, around minute 6 of the stream, probably around line 130 or so of the file.) I'm guessing that this means that -F has usually been grabbing up to a minute of still-encrypted data, which some players can't parse.
The patch below contains an extra check for the lines containing keys, and sets the stream position to the last key line before the time specified by -F. So the start position may be up to a minute before the specified time, but it should now always be properly decrypted.
I tried to keep the patch as tidy as I could, but my C skillz are nonexistant, so if anybody spots any trouble with the patch please post an alert here.
Hope people find this helpful -- I know I will relish getting rid of my silly dd hack!
Hmm, I just played around a bit with mplayer2, and I realize that my hypothesis about decryption may not be right: mplayer2 can read the stuff that a unpatched mlbhls -F grabs even before it gets to the first key, which I assume wouldn't be possible if that data was actually encrypted. VLC, on the other hand, just pauses until it gets to where the first key is and plays from there; mplayer 1.1 apparently doesn't wait so long and simply crashes immediately.
So probably not actually an encryption issue, but maybe the key URL also provides some header information that helps less permissive video players to read the file?
Not sure if it matters either way -- I know I'm just enjoying not having to run mlbhls manually any more!...
Wow, good job fang2415! I haven't been able to try it yet but I hope thegryghost can take a look at that and incorporate it into his code! For the next time the rtmp streams fail ;-). Thanks.
So it turns out I had 'elim' and gb_wildcard' in the team data structure all along. I just wasn't extracting those pieces into the team dictionaries that the standings are constructed with.
I have inserted E# and WCGB into the standings display and shifted RS, RA, and +/- off the 80x24 display. These columns still exist in the standings window. You just have to maximize or expand the terminal width.
Has anyone run across this? When I set a team as a favorite (e.g., favorite=bos) in the config file then go into mlbviewer, that team no longer shows up in the standings. If I leave the favorite field blank in the config file, then all teams appear in the standings.
I just found out about this program today, and I love it! I'm sure someone else has asked about this and/or it may have already been addressed, but is there a way in Xfce (SolydX with the Whisper Menu) to create menu entries for both mlbviewer and mlbvideos? If so, it is hopefully easy as I am not much good at code and such. If not, then I guess I'll be getting more familiar with using the terminal.
Has anyone run across this? When I set a team as a favorite (e.g., favorite=bos) in the config file then go into mlbviewer, that team no longer shows up in the standings. If I leave the favorite field blank in the config file, then all teams appear in the standings.
I just found out about this program today, and I love it! I'm sure someone else has asked about this and/or it may have already been addressed, but is there a way in Xfce (SolydX with the Whisper Menu) to create menu entries for both mlbviewer and mlbvideos? If so, it is hopefully easy as I am not much good at code and such. If not, then I guess I'll be getting more familiar with using the terminal.
Thanks!
I have fixed this in the latest SVN revision. If you downloaded from sourceforge, read the bit in the README about how to checkout the SVN version (you'll need the subversion package from your distro.) If you already have the SVN version, just do an "svn up".
The problem was, that if use_color=0, most everywhere else, mlbviewer will underline the team. I didn't really like the way this looked in standings when I wrote that code. Looking at it now, I think it's okay. Not great, but I'm not going to put in the effort to fix the underlining to not underline the spaces. If you aren't crazy about the underlining, try setting use_color=1 and read the README about selecting the color to use for favorite_color= (default is cyan.)
As for xfce menu items, search google:
Code:
https://www.google.com/search?q=xfce+menu+items
The command in the menu will be something like this:
Code:
xterm -e /home/matthew/mlb2013/mlbviewer.py
Replace that last part with the full path to your mlbviewer or mlbvideos.
Thanks, daftcat! I found out my distro has a program called Alacarte that allows adding menu items to the Whisker Menu in Xfce. Found a couple of baseball icons I could use and I am set with separate menu listings for MLBviewer, MLBvideos, and MLBstats.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.