|
|
2009-02-28
, 05:10
|
|
Posts: 75 |
Thanked: 19 times |
Joined on Jun 2008
@ Seattle
|
#181
|
|
|
2009-02-28
, 21:56
|
|
Posts: 134 |
Thanked: 57 times |
Joined on Mar 2008
@ South Bend IN
|
#182
|
|
|
2009-02-28
, 23:29
|
|
Posts: 75 |
Thanked: 19 times |
Joined on Jun 2008
@ Seattle
|
#183
|
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: | ||
|
|
2009-02-28
, 23:39
|
|
Posts: 75 |
Thanked: 19 times |
Joined on Jun 2008
@ Seattle
|
#184
|
|
|
2009-03-01
, 02:23
|
|
Posts: 134 |
Thanked: 57 times |
Joined on Mar 2008
@ South Bend IN
|
#185
|
|
|
2009-03-01
, 18:48
|
|
Posts: 134 |
Thanked: 57 times |
Joined on Mar 2008
@ South Bend IN
|
#186
|
|
|
2009-03-07
, 03:49
|
|
Posts: 75 |
Thanked: 19 times |
Joined on Jun 2008
@ Seattle
|
#187
|
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: | ||
|
|
2009-03-07
, 04:15
|
|
Posts: 16 |
Thanked: 1 time |
Joined on May 2007
@ Chicago
|
#188
|
|
|
2009-03-07
, 23:53
|
|
Posts: 176 |
Thanked: 34 times |
Joined on Feb 2008
|
#189
|
|
|
2009-03-09
, 13:48
|
|
Posts: 134 |
Thanked: 57 times |
Joined on Mar 2008
@ South Bend IN
|
#190
|
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?
| The Following User Says Thank You to hvacengi For This Useful Post: | ||