[mythtv-commits] Ticket #7338: mirobridge segfaults with pubDate < 1900

MythTV mythtv at cvs.mythtv.org
Fri Oct 16 12:11:39 UTC 2009


#7338: mirobridge segfaults with pubDate < 1900
----------------------------------------+-----------------------------------
 Reporter:  managementboy@…             |       Owner:  mdean  
     Type:  defect                      |      Status:  new    
 Priority:  minor                       |   Milestone:  unknown
Component:  Contributed Scripts & Apps  |     Version:  0.22rc1
 Severity:  low                         |     Mlocked:  0      
----------------------------------------+-----------------------------------
 Some Feeds/Channels in Miro seem have "broken" pubDate fields, for example
 with years smaller than 1900. This leads to a crash of mirobridge when
 importing to MythTV. Maybe a check for this could be added to the script
 to make it more robust.

 The error is:
 {{{
 Shutting down...
 Traceback (most recent call last):
   File "/usr/share/doc/mythtv-
 backend/contrib/imports/mirobridge/mirobridge.py", line 2785, in <module>
     main()
   File "/usr/share/doc/mythtv-
 backend/contrib/imports/mirobridge/mirobridge.py", line 2752, in main
     if not updateMythRecorded(unwatched):
   File "/usr/share/doc/mythtv-
 backend/contrib/imports/mirobridge/mirobridge.py", line 1948, in
 updateMythRecorded
     records = createRecordedRecords(item)
   File "/usr/share/doc/mythtv-
 backend/contrib/imports/mirobridge/mirobridge.py", line 1463, in
 createRecordedRecords
     tmp_recorded[u'originalairdate'] =
 item[u'releasedate'].strftime('%Y-%m-%d')
 ValueError: year=1 is before 1900; the datetime strftime() methods require
 year >= 1900
 }}}

 Thanks for the help!

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/7338>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list