[mythtv-commits] Ticket #12772: Crash in Recorded.getProgram() for recordings without bookmark after upgrade to 0.28

MythTV noreply at mythtv.org
Sun May 29 22:56:39 UTC 2016


#12772: Crash in Recorded.getProgram() for recordings without bookmark after
upgrade to 0.28
-----------------------------------------+--------------------------
 Reporter:  Fred Fettinger <fettinge@…>  |          Owner:  wagnerrp
     Type:  Bug Report - Crash           |         Status:  new
 Priority:  minor                        |      Milestone:  unknown
Component:  Bindings - Python            |        Version:  0.28.0
 Severity:  medium                       |     Resolution:
 Keywords:                               |  Ticket locked:  0
-----------------------------------------+--------------------------

Comment (by Fred Fettinger <fettinge@…>):

 That's pretty much what I ended up doing as a workaround also. Since I
 wasn't sure whether this bug was specific to bookmarkupdate or not, I
 patched the general timestamp handler as shown below.
 {{{
 mythtv/bindings/python/MythTV/altdict.py
 @@ -83,41 +83,41 @@ class OrdDict( dict ):
      _trans = [  int,
                  locale.atof,
                  bool,
                  lambda x: x,
 -                lambda x: datetime.fromtimestamp(x, datetime.UTCTZ())\
 +                lambda x: datetime.fromtimestamp(x if x != '4294967295'
 else '0', datetime.UTCTZ())\
                                    .astimezone(datetime.localTZ()),
                  lambda x: date(*[int(y) for y in x.split('-')]),
                  lambda x: datetime.fromRfc(x, datetime.UTCTZ())\
 }}}

--
Ticket URL: <https://code.mythtv.org/trac/ticket/12772#comment:3>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list