Ticket #2207: mythfilldb-eit.diff
File mythfilldb-eit.diff, 1.5 KB (added by , 19 years ago) |
---|
-
mythtv/programs/mythfilldatabase/filldata.cpp
2823 2823 MSqlQuery query(MSqlQuery::InitCon()); 2824 2824 QDateTime GuideDataBefore, GuideDataAfter; 2825 2825 int failures = 0; 2826 bool is_eitonly = false; 2826 2827 2827 2828 query.exec(QString("SELECT MAX(endtime) FROM program WHERE manualid=0;")); 2828 2829 if (query.isActive() && query.size() > 0) … … 3101 3102 { 3102 3103 VERBOSE(VB_IMPORTANT, "Source configured to use only the " 3103 3104 "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"))); 3104 3110 } 3105 3111 else if (xmltv_grabber == "/bin/true" || 3106 3112 xmltv_grabber == "none" || … … 3137 3143 3138 3144 if (failures == 0) 3139 3145 { 3140 if (GuideDataAfter == GuideDataBefore )3146 if (GuideDataAfter == GuideDataBefore && !is_eitonly) 3141 3147 status = "mythfilldatabase ran, but did not insert " 3142 3148 "any new data into the Guide. This can indicate a " 3143 3149 "potential grabber failure.";