Opened 11 years ago
Closed 11 years ago
#7338 closed defect (fixed)
mirobridge segfaults with pubDate < 1900
Reported by: | Owned by: | sphery | |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | Contributed Scripts & Apps | Version: | 0.22rc1 |
Severity: | low | Keywords: | |
Cc: | Ticket locked: | no |
Description
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!
Note: See
TracTickets for help on using
tickets.
This seems to fix it...