[mythtv-commits] Ticket #12882: mythfilldatabase causes incorrect original air date in mythweb

MythTV noreply at mythtv.org
Tue Sep 20 17:16:08 UTC 2016


#12882: mythfilldatabase causes incorrect original air date in mythweb
-------------------------------------------+----------------------
     Reporter:  pbennett                   |      Owner:  pbennett
         Type:  Patch - Bug Fix            |     Status:  new
     Priority:  minor                      |  Milestone:  0.28.1
    Component:  MythTV - Mythfilldatabase  |    Version:  0.28.0
     Severity:  medium                     |   Keywords:
Ticket locked:  0                          |
-------------------------------------------+----------------------
 This problem exists for xmltv grabbers, not for the data direct grabber.

 In mythweb, the original air date for tv series is always showing the
 current year instead of the actual original air date.

 This is because it uses the "airdate" column if it is non-zero, otherwise
 it uses the "original air date".

 For TV series, airdate should not be used. (see description from
 dbcheck.cpp: 'airdate' is a string representing the year of release for
 movies and may have no meaning for other types of shows.

 xmltvparser.cpp has logic that inserts the current year in airdate if
 there is no airdate. This should not be done for TV series.

 I am proposing a fix for it, which is working for me.

 The code has been like this since 2009, I am wondering why nobody has
 noticed the problem. Perhaps most xmltv providers do not supply a real
 original air date. For Schedules direct, original air date is accurate
 almost all of the time.

 For proposed fix see here ->
 https://github.com/bennettpeter/mythtv/commit/de66eac

 Let me know of any issues with the fix.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/12882>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list