Notices


Reply
Thread Tools
Posts: 75 | Thanked: 19 times | Joined on Jun 2008 @ Seattle
#181
I have downloaded the latest (mlbviewer_gui-0.0.10 and python-mlbviewer-0.0.3) and it appears there is a time offset problem. I'm seeing game times at 11:05 AM and 01:05 PM. I'm in the Pacific TZ and the games were at 10am and Noon. I tried deleting my .mlb/config file and recreating it and I also tried changing the 'time_offset' by hand and it made no difference.
 
Posts: 134 | Thanked: 57 times | Joined on Mar 2008 @ South Bend IN
#182
I have actually noticed the same thing, and I've tried to trace it down. It seems to be a problem in the mlbviewer base lib, or my interaction with it. What you should see is the Eastern time of the game, but I have also found what appears to be a bug in python's daylight savings code on the tablet since everything shows up one hour late for me. It looks like you have the same q hur offset, but in your TZ, not mine... I am going to have to dig in a bit more and fix it, maybe I missed mlbviewer paying attention to the tablets set timezone somehow. Any other noticable issues?
 
Posts: 75 | Thanked: 19 times | Joined on Jun 2008 @ Seattle
#183
I've got it figured out. The re pattern is bad in mlbtv.py line 92. After this fix you'll need to not subtract 5 from time_offset in setup_cfg, line 527. Below is the code change from mlbtv.py starting at line 90:

Code:
    if time_shift:
#        pattern = re.compile(r'([+-]?)([0-9]{2})([0-9]{2})')
        pattern = re.compile(r'([+-]?)([0-9]{,2})([0-9]{,2})*') 
        parsed = re.match(pattern,time_shift)
        # So if we could parse it, we split it up.
        if parsed:
            # added this check for null string
            if parsed.groups()[2] == '':
                secdigit = 0
            else:
                secdigit = int(parsed.groups()[2])
#            mins = ( 60* int(parsed.groups()[1]) ) + int(parsed.groups()[2])
            mins = ( 60* int(parsed.groups()[1]) ) + secdigit
            secs = 60 * mins
            # here's the weird part: python does timezones in terms of
            # a difference, so we have to reverse the signs. In other
            # words, a '-' means that it's a positive difference.
            if parsed.groups()[0] in ('+', ''):
                secs *= -1
            myzone = secs
        # Otherwise we just go by the default machine time
        else:
            # If time.daylight returns 0 (false) it will choose the
            # first element; if it returns 1 (true) it will return the
            # second element.
            myzone = (time.timezone, time.altzone)[time.daylight]
    else:
        myzone = (time.timezone, time.altzone)[time.daylight]
 

The Following User Says Thank You to ehovorka For This Useful Post:
Posts: 75 | Thanked: 19 times | Joined on Jun 2008 @ Seattle
#184
BTW, I changed my .mlb/config file to have a time_offset=-8 for Pacific Time
 
Posts: 134 | Thanked: 57 times | Joined on Mar 2008 @ South Bend IN
#185
Thanks for tracking that down for me! I'll update it tomorrow morning and get a new deb file uploaded. I think I'll also take a look at what it takes to get this stuff into the maemo repo's (or just make my own, whichever looks easier).
 
Posts: 134 | Thanked: 57 times | Joined on Mar 2008 @ South Bend IN
#186
I have now updated the files, with ehovorka's patch (thanks again for that!).

I also added a couple of lines to the launch script to copy the log file, and then remove the copy after closing the program. This let me add a log viewing link in the program menu, which should make things easier. I think I removed any print statements that reveal a username and password, but you should still double check before you post any text from your log if you're looking for help.
 
Posts: 75 | Thanked: 19 times | Joined on Jun 2008 @ Seattle
#187
New problem, they've added 600k streams. I think the base mlbviewer code has a fix for this already. Here's a patch. /usr/lib/python2.5/site-packages/MLBviewer/mbltv.py, line 274, add the following two lines.
Code:
      for url in elem['mlbtv']['urls']:
          # handle 2007 season where 700K is top quality
          # mask 700K to look like 800K
          if str(self.year) == '2007' and url['speed'] == '700':
              dct['video']['800'] = url['url']

##########add this
              if url['speed'] == '600':
                  dct['video']['400'] = url['url']
###############

              dct['video'][url['speed']] = url['url']
              # national blackout
              try:
                  if (url['blackout'] == 'national') and \
                          elem['status'] in ('I','W','P','IP'):
                          dct['status'] = 'NB'
              except:
                  pass
 

The Following User Says Thank You to ehovorka For This Useful Post:
Posts: 16 | Thanked: 1 time | Joined on May 2007 @ Chicago
#188
Does anyone know how to rip dvd's with a free dvd ripper software and send them to the n810 and if so, please let me know asap I have to go on a trip to Canada and I need to watch some good movies. I already installed the video converter from nokia's website. I can be reached at gizmo my sn is : jsmith8386 anytime or gtalk:jus2much314
 
Posts: 176 | Thanked: 34 times | Joined on Feb 2008
#189
I buckled and bought another year's subscription (though I HATE the freakin' ads between innings).

I did it to watch The Netherlands blow up the Dominican Republic's egos :-) Although, Alou, the manager is wonderful ex-Expos manager and is well-loved. But I do loves me some underdogs.

Anyway. About 28 more days to opening day and I just read that they're changing from Silverlight to some flash-based system.

How will this affect mlbviewer and the ability to watch the games on the N800 / N810 s?

Anybody?
 
Posts: 134 | Thanked: 57 times | Joined on Mar 2008 @ South Bend IN
#190
Originally Posted by Betty Woo View Post
I buckled and bought another year's subscription (though I HATE the freakin' ads between innings).

I did it to watch The Netherlands blow up the Dominican Republic's egos :-) Although, Alou, the manager is wonderful ex-Expos manager and is well-loved. But I do loves me some underdogs.

Anyway. About 28 more days to opening day and I just read that they're changing from Silverlight to some flash-based system.

How will this affect mlbviewer and the ability to watch the games on the N800 / N810 s?

Anybody?
We probably won't know how it will fully affect the system until it is implemented. Last year, when they made the switch to silverlight it had no affect on the ability to play streams (though if I recall correctly, they did need to patch the stream URL and page parsing). It may mean that you won't need this application to access the audio streams though, as prior to last season I was able to get into the gameday audio page and start the stream. Running it in their flash app will probably hurt battery life though (flash can be very resource intensive).

Originally Posted by ehovorka View Post
New problem, they've added 600k streams. I think the base mlbviewer code has a fix for this already. Here's a patch. /usr/lib/python2.5/site-packages/MLBviewer/mbltv.py, line 274, add the following two lines.
I can make that modification (though if it is already upstream I'll just update to the newest version of mlbviewer and go from there). I'm curious, has the 600k video helped you with being able to actually view the video of the games? (assuming you applied the mod yourself already).
 

The Following User Says Thank You to hvacengi For This Useful Post:
Reply

Tags
mblviewer, mlb, mlbviewer


 
Forum Jump


All times are GMT. The time now is 18:35.