[mythtv-commits] Ticket #6663: NULL descriptions cause invalid data to be stored when using EIT.

MythTV noreply at mythtv.org
Wed Oct 17 20:25:55 UTC 2012

#6663: NULL descriptions cause invalid data to be stored when using EIT.
 Reporter:  Kristopher <setnes@…>  |          Owner:  danielk
     Type:  defect                 |         Status:  closed
 Priority:  minor                  |      Milestone:  unknown
Component:  MythTV - EIT           |        Version:  0.22-fixes
 Severity:  medium                 |     Resolution:  Unverified
 Keywords:                         |  Ticket locked:  0

Comment (by mackenziema@…):

 I added this code to DBEvent::UpdateDB(
     MSqlQuery &query, uint chanid, const DBEvent &match)


     if (match.description.length() >= ldesc.length()) {
         LOG(VB_EIT, LOG_INFO, QString("Setting Description: %1 - %2    %3
 - %4").arg(ltitle).arg(ldesc).arg(match.title).arg(match.description));
         ldesc = match.description;
     } else {
         LOG(VB_EIT, LOG_INFO, QString("Description As Is: %1 - %2    %3 -

 After running the backend with -v eit I saw lines like:

 2012-10-14 16:42:00.888848 I  Setting Description: Brother Bear - A young
 Native American hunter is magically transformed into a bear while seeking
 revenge on the bear that took the life of his older brother, but in order
 to survive life in his new surroundings he must rely on the guidance of a
 young bear cub.    Brother Bear - After learning that a friend's marriage
 is in trouble, Audrey and Jeff agree to let him stay over as he goes
 through a difficult divorce, but they soon begin to regret their
 invitation after they discover his penchant for giving inappropriate hugs.

 Since I know that "Brother Bear" isn't about marriage trouble, the 2nd
 description is most likely inaccurate.

Ticket URL: <http://code.mythtv.org/trac/ticket/6663#comment:15>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center

More information about the mythtv-commits mailing list