Ticket #13057: 20190131-programdata-update.patch

File 20190131-programdata-update.patch, 1.0 KB (added by Klaas de Waal, 13 months ago)

Fix for update of title/subtitle/description and airdate.

  • mythtv/libs/libmythtv/programdata.cpp

    diff --git a/mythtv/libs/libmythtv/programdata.cpp b/mythtv/libs/libmythtv/programdata.cpp
    index b46a15d64b..cc1e704b95 100644
    a b uint DBEvent::UpdateDB( 
    625625    QString  linetref   = inetref;
    626626    QDate loriginalairdate = originalairdate;
    627627
    628     if (match.title.length() >= ltitle.length())
     628    if (ltitle.isEmpty() && !match.title.isEmpty())
    629629        ltitle = match.title;
    630630
    631     if (match.subtitle.length() >= lsubtitle.length())
     631    if (lsubtitle.isEmpty() && !match.subtitle.isEmpty())
    632632        lsubtitle = match.subtitle;
    633633
    634     if (match.description.length() >= ldesc.length())
     634    if (ldesc.isEmpty() && !match.description.isEmpty())
    635635        ldesc = match.description;
    636636
    637637    if (lcategory.isEmpty() && !match.category.isEmpty())
    638638        lcategory = match.category;
    639639
    640     if (!lairdate && !match.airdate)
     640    if (!lairdate && match.airdate)
    641641        lairdate = match.airdate;
    642642
    643643    if (!loriginalairdate.isValid() && match.originalairdate.isValid())