[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mythtv-commits
Subject:    Re: [mythtv-commits] Ticket #12772: Crash in Recorded.getProgram() for recordings without bookmark a
From:       "MythTV" <noreply () mythtv ! org>
Date:       2016-05-29 22:56:39
Message-ID: 083.a33cff0259ae3da6aecd5f8924ed1a3b () mythtv ! org
[Download RAW message or body]

#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
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic