Notices


Reply
Thread Tools
Posts: 75 | Thanked: 19 times | Joined on Jun 2008 @ Seattle
#221
I put a new copy of mlbtv.py on bramblesoft.com. Looks like MLB removes the game start time when there is a rain out.
 
Posts: 134 | Thanked: 57 times | Joined on Mar 2008 @ South Bend IN
#222
just saw your update. I will grab it and include it. I'll try to modify my settings dialog box to allow choosing mobile, so if I ever get regular audio working we can swap.

ehovorka, I can give you upload permission and/or svn acess (which requires me to actually update the svn...). You're contributing plenty and I don't feel any need to keep this project to myself.
 
Posts: 75 | Thanked: 19 times | Joined on Jun 2008 @ Seattle
#223
Hopefully MLB is done making changes so I won't have to fix much. I can work with whatever method you find easiest. I have a garage account (same user name). I am going to Chicago for a few days, so won't be participating here much.

At some point, it would be nice to add the game stats (at least score and inning). I found the XML files that have all that info and it would be pretty easy to add. Just a thought. There's a boat load of stats available, but I like the idea of keeping it simple.

Using the NIT's browser, m.mlb.com is a much faster way (than the full www.mlb.com) to see the scores, standings, stats. No flash, just text.
 
Posts: 104 | Thanked: 20 times | Joined on Apr 2008 @ Illinois
#224
hvacengi owns mlbviewer_gui, so he can decide if he wants to keep these changes. I have put the two files and instructions for installing them on one of my websites (there is no .deb installer, you have to do it manually).

http://www.bramblesoft.com
That seems pretty complicated. I gave it a shot and thought I had done it correctly, but mlbviewer won't even open now. Is there any real advantage to using mlbviewer instead of using the mobile audio site directly? I know you said you have to log in again everytime you switch games, but I'll probably only listen to one game. I haven't bought the mobile subsccription yet.
 
Posts: 75 | Thanked: 19 times | Joined on Jun 2008 @ Seattle
#225
I guess I should try to make a .deb for ease of install. It seemed simple to me, just copy the two files to their correct locations and add a line to the config. I have to wait to see how much time I have this week to put a .deb together for this. I agree it would be nice.

One thing to try is to open xterm and run:
python /usr/lib//mlbviewer_gui/mlbviewer_gui.py

In the xterm window you will see any errors that happen. Maybe you are missing the XML lib. I don't remember installing it, so either I did install it and just forgot or something else installed it.

Running the python command above will give us a clue. Let me know what errors you see.
 
Posts: 104 | Thanked: 20 times | Joined on Apr 2008 @ Illinois
#226
Like I said it seemed like I had done it right. I couldn't download the python file on your website, it would just download as an htm file. So I tried copy and paste but the tablet kept freezing up so I did it on my pc. Then I copied and overwrote the two python files. Anyway here's the error I get:
~ $ /usr/lib/mlbviewer_gui/mlbviewer_gui.py
Traceback (most recent call last):
File "/usr/lib/mlbviewer_gui/mlbviewer_gui.py", line 2, in <module>
from MLBviewer import MLBSchedule
File "/usr/lib/python2.5/site-packages/MLBviewer/__init__.py", line 14, in <module>
from mlbtv import MLBSchedule
ImportError: cannot import name MLBSchedule
~ $

Thanks for your help.
 
Posts: 134 | Thanked: 57 times | Joined on Mar 2008 @ South Bend IN
#227
I think I finally am going to be able to make the time tonight to update the package for the mobile changes and test it. I was going to just package it when I got to work this morning, but forgot my memory card at home, so I'll package it when I get home and upload it. The upload will be untested by me however, until games are on tonight.

The advantage that I see in mlbviewer vs. the mobile site is ease. I wrote the gui, so I'm a little biased, but it puts the information I need/want in an easy to navigate location. The one downside being that the first load time is a little longer than I like. Theoretically, if the other features get fixed for the desktop version, we should still be able to watch the highlights, and condensed games, and such. I'm going to be very curious to see if there is a video performance difference with the new media streams (don't know if they are still wmv).

Oh yeah, the update today will probably include a means of displaying team icons next to the game. I have it implemented on my copy, but I still haven't decided how to get around the possible issues with distributing mlb images. I'll probably have to finally include an "about" dialog that references them.
 
Posts: 15 | Thanked: 0 times | Joined on Feb 2008
#228
Thanks, again, hvaceng, for working on this. If mlb could only leave this alone one year! I miss being able to get the audio streams on my N810.
 
Posts: 134 | Thanked: 57 times | Joined on Mar 2008 @ South Bend IN
#229
The update is live, and hopefully should work. I tested it by removing mlbviewer_gui, and python-mlbviewer, and removing the data directory "/home/user/.mlb". If you run into issues, the first thing I would try is removing that directory.

The only working form of media is the mobile audio (which I think is actually streaming better than the gameday audio last year, less feedback and fewer skips). This is unfortunately a few steps back from last year, but a step forward from opening day.

Speaking of steps forward: you can now enable team icon's to be displayed to the left of the game listing. I find it very helpful in quickly finding the teams, as I had a tendency of scrolling up and down 10 times before I found the right team; I'm down to scrolling up and down 3 times now :-) . To do this does require "wget" to be installed. I don't remember where I got it, I'll look around and post a link. Not having "wget" shouldn't mess up the core program too much. You might error out with the first download, but the download should not be triggered when you re-open mlbviewer (I activate the download script if logos are enabled, and if "/home/user/.mlb/images/" doesn't exist). PLEASE RESTART THE APPLICATION IF YOU ENABLE ICONS ON AN ALREADY CONFIGURED SYSTEM. Otherwise, it will probably act funny until the UI is reloaded and configured to support the icons.

I also just remembered a bug where the application quit's after downloading the image files for the team logos. It is the result of an ill-placed sys.exit() in the original script that I wrote with no intention of integrating it into the full package. I was wrong, I don't call an exit... must be something funny with the subprocess for the download. I'll have to look closer. The download only happens the first time you enable the icons, so if you are using the new version before I upload the fixed version: just re-open mlbviewer. This should be fixed shortly.
Version 0.1.1-2 has this issue resolved.
(speaking of which, apparently I made up a deb with a new version 0.1.1-1 and never did anything with it, so the release jumps).

Last edited by hvacengi; 2009-04-30 at 01:09.
 

The Following User Says Thank You to hvacengi For This Useful Post:
Posts: 75 | Thanked: 19 times | Joined on Jun 2008 @ Seattle
#230
Originally Posted by blowfish23 View Post
I couldn't download the python file on your website, it would just download as an htm file. So I tried copy and paste but the tablet kept freezing up so I did it on my pc. Then I copied and overwrote the two python files.
.
Ahh, there's the problem. Right click and 'save as' (or hold click and 'save as' on the NIT). Python is very format dependent, so you need all those spaces and newlines that the browser removes, so you can't copy and paste.
 
Reply

Tags
mblviewer, mlb, mlbviewer

Thread Tools

 
Forum Jump


All times are GMT. The time now is 21:37.