Ticket #2207: mythfilldb-eit.diff

File mythfilldb-eit.diff, 1.5 KB (added by otto at kolsi dot fi, 19 years ago)
  • mythtv/programs/mythfilldatabase/filldata.cpp

     
    28232823    MSqlQuery query(MSqlQuery::InitCon());
    28242824    QDateTime GuideDataBefore, GuideDataAfter;
    28252825    int failures = 0;
     2826    bool is_eitonly = false;
    28262827
    28272828    query.exec(QString("SELECT MAX(endtime) FROM program WHERE manualid=0;"));
    28282829    if (query.isActive() && query.size() > 0)
     
    31013102        {
    31023103            VERBOSE(VB_IMPORTANT, "Source configured to use only the "
    31033104                    "broadcasted guide data. Skipping.");
     3105            is_eitonly = true;
     3106            query.exec(QString("UPDATE settings SET data ='%1' "
     3107                               "WHERE value='mythfilldatabaseLastRunStart' OR "
     3108                               "value = 'mythfilldatabaseLastRunEnd'")
     3109                       .arg(QDateTime::currentDateTime().toString("yyyy-MM-dd hh:mm")));
    31043110        }
    31053111        else if (xmltv_grabber == "/bin/true" ||
    31063112                 xmltv_grabber == "none" ||
     
    31373143
    31383144    if (failures == 0)
    31393145    {
    3140         if (GuideDataAfter == GuideDataBefore)
     3146        if (GuideDataAfter == GuideDataBefore && !is_eitonly)
    31413147            status = "mythfilldatabase ran, but did not insert "
    31423148                     "any new data into the Guide.  This can indicate a "
    31433149                     "potential grabber failure.";