Ticket #613: eit-change-scheduled-episode.diff
File eit-change-scheduled-episode.diff, 2.3 KB (added by , 18 years ago) |
---|
-
libs/libmythtv/eithelper.cpp
old new 199 199 { 200 200 uint counter = 0; 201 201 query.prepare( 202 "SELECT starttime, endtime, title "202 "SELECT starttime, endtime, title, subtitle " 203 203 "FROM program " 204 204 "WHERE chanid=:CHANID AND " 205 205 " ( ( starttime>=:STIME AND starttime<:ETIME ) AND NOT " 206 " ( starttime=:STIME AND endtime=:ETIME AND title=:TITLE ) AND " 206 " ( starttime=:STIME AND endtime=:ETIME AND " 207 " title=:TITLE AND subtitle=:SUBTITLE) AND " 207 208 " manualid=0 );"); 208 209 209 210 query.bindValue(":CHANID", chanid); … … 212 213 query.bindValue(":ETIME", event.EndTime. 213 214 toString(QString("yyyy-MM-dd hh:mm:00"))); 214 215 query.bindValue(":TITLE", event.Event_Name.utf8()); 216 query.bindValue(":SUBTITLE", event.Event_Subtitle.utf8()); 215 217 216 218 if (!query.exec() || !query.isActive()) 217 219 MythContext::DBError("Checking Rescheduled Event", query); … … 228 230 // Possibly more than one conflict 229 231 VERBOSE(VB_EIT, QString("Schedule Change on Channel %1") 230 232 .arg(chanid)); 231 VERBOSE(VB_EIT, QString("Old: %1 %2 %3 ")233 VERBOSE(VB_EIT, QString("Old: %1 %2 %3: %4") 232 234 .arg(query.value(0).toString()) 233 235 .arg(query.value(1).toString()) 234 .arg(query.value(2).toString())); 235 VERBOSE(VB_EIT, QString("New: %1 %2 %3") 236 .arg(query.value(2).toString()) 237 .arg(query.value(3).toString())); 238 VERBOSE(VB_EIT, QString("New: %1 %2 %3: %4") 236 239 .arg(event.StartTime. 237 240 toString(QString("yyyy-MM-dd hh:mm:00"))) 238 241 .arg(event.EndTime. 239 242 toString(QString("yyyy-MM-dd hh:mm:00"))) 240 .arg(event.Event_Name.utf8())); 243 .arg(event.Event_Name.utf8()) 244 .arg(event.Event_Subtitle.utf8())); 241 245 // Delete old EPG record. 242 246 query2.bindValue(":CHANID", chanid); 243 247 query2.bindValue(":STARTTIME", query.value(0).toString());