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.
Method 1: (by far, the easiest and safest): start mlbviewer as
Code:
$ python2 mlbviewer.py
Method 2: Assuming* /usr/local/bin is ahead of /usr/bin in your PATH (env | grep PATH), you can put a symlink in /usr/local/bin to python2
Code:
$ ln -s /usr/bin/python2 /usr/local/bin/python
*Assuming Arch isn't totally off its rocker, /usr/local/bin should be ahead of /usr/bin so that any user-built software is preferred over system installed binaries. But then again, I would have assumed that python2 would still be the default so all bets are off. Try method 1 first.
Method 1: (by far, the easiest and safest): start mlbviewer as
Code:
$ python2 mlbviewer.py
Method 2: Assuming* /usr/local/bin is ahead of /usr/bin in your PATH (env | grep PATH), you can put a symlink in /usr/local/bin to python2
Code:
$ ln -s /usr/bin/python2 /usr/local/bin/python
*Assuming Arch isn't totally off its rocker, /usr/local/bin should be ahead of /usr/bin so that any user-built software is preferred over system installed binaries. But then again, I would have assumed that python2 would still be the default so all bets are off. Try method 1 first.
So I've been trying to avoid bothering you again, but I can't get past the error: "There was a parser problem with the listings page".
After exiting the program on this error, I get this at the CLI:
Traceback (most recent call last):
File "mlbviewer.py", line 1630, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper
return func(stdscr, *args, **kwds)
File "mlbviewer.py", line 500, in mainloop
+ len(coveragetoggle.get(cfg['coverage'])) + 2
UnboundLocalError: local variable 'is_adaptive' referenced before assignment
The last time this seems to appear in this thread is 2011. You suggested making sure speeds were correct. I have installed mlbhls. So the speeds in the config file are: 1200 and a min_bps of 500000, which I would think are fine.
Any suggestions?
Quote:
Originally Posted by randcoop
My apologies. I should have consulted the Arch wiki before coming here. I wrongly assumed the problem was with mlbviewer.
Python2 command worked (although I now have an error with the parser listing page...but I'll go to work on that).
So I've been trying to avoid bothering you again, but I can't get past the error: "There was a parser problem with the listings page".
After exiting the program on this error, I get this at the CLI:
Traceback (most recent call last):
File "mlbviewer.py", line 1630, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper
return func(stdscr, *args, **kwds)
File "mlbviewer.py", line 500, in mainloop
+ len(coveragetoggle.get(cfg['coverage'])) + 2
UnboundLocalError: local variable 'is_adaptive' referenced before assignment
The last time this seems to appear in this thread is 2011. You suggested making sure speeds were correct. I have installed mlbhls. So the speeds in the config file are: 1200 and a min_bps of 500000, which I would think are fine.
I had an idea I needed to close the player between videos. That looks pretty cool. I'll wait to take it for a spin since I'm also running tests for SolydK's Update Pack 1 and don't want to confuse me or my laptop too much. I know when you roll it out it'll probably be well worth waiting for.
In the middle of a rewrite. I might hack something together for you with mlbplay and hold off on making the mlbviewer changes until I'm done (or closer to done) with the rewrite. I have about 60% of the GUI done and none of it is talking with the business end of the program (getting and playing media.). Soon I hope. I don't want to be rewriting when I and supposed to be fixing (hopefully 2013 won't have that much to fix.)
No guarantees it still works. I broke it for a season or two and no-one reported it. It may or may not still work. I kind of want to reclaim those keys for a top secret new feature or two that I'm working on.
The problem with the feature is that it may only work for that season. If they make changes in 2013, I don't try for previous season compatibility anymore. I do branch at the end of the season so theoretically, the last checkin on the 2012 branch would work with any 2012 bookmarks. But you would need a 2011 checkout of mlbviewer for 2011 bookmarks, etc.
Hmmm...one thing at a time, but maybe I'll finally implement a key mapping file so you can have both cakes and eat them too.
I did a huge rewrite of mlbviewer mostly to clean up the code but also to make certain pieces of the code a LOT easier to read and maintain.
While I have done my best to keep it feature equivalent to the old code, I have not included LIRC support yet or the bookmarks feature. The bookmarks feature I will likely not put back in but I will put the LIRC code back in, if requested (even though I have no way to test it.)
I would like everyone to update to this revision. I will not maintain the old code.
I don't believe I have captured everywhere a request can go wrong. So you may get crashes. If you do get a crash, please post the stack trace, the full text, so I can fix it.
BostonPeng, highlights as a playlist is included in rev385. The 'y' key will create a /tmp/highlights.m3u8 and play it using whatever command you put in top_plays_player. Although, really, right now, I think it only supports mplayer because I use the -playlist argument. If you want vlc or any other player, let me know and I'll add another option like highlights_playlist_player that you can use to specify the correct command.
I know using the 'y' key doesn't make intuitive sense, but it's next to the 't' key so think of it that way. You can use the 'y' key from either the listings screen or the top plays screen itself. Finally, there's no way for me to know what correct game order of the highlights should be. The highlights.xml I parse does not contain that information. Can you watch the condensed games ('c' key) or do you need a subscription for those?
I'll have to grab the latest code and give it a spin! I thought condensed games required a subscription but it looks like they don't, although it looks like they're only condensing one game per day for now.
ETA: Maybe I do need a subscription for condensed games because when I try to watch them via mlbviewer I get dumped back to the games listing although I can watch them on the MLB website.
Last edited by BostonPeng; 03-25-2013 at 09:44 AM.
I'll have to grab the latest code and give it a spin! I thought condensed games required a subscription but it looks like they don't, although it looks like they're only condensing one game per day for now.
ETA: Maybe I do need a subscription for condensed games because when I try to watch them via mlbviewer I get dumped back to the games listing although I can watch them on the MLB website.
Did you try Saturday's Twins at Tampa Bay game? That's the most recent one with CG available. Mlbviewer will say in the status if condensed game is available. Otherwise, it will give you a requested media not found error.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.