Ticket #673: xmltv_aus.2.diff
File xmltv_aus.2.diff, 1.5 KB (added by , 18 years ago) |
---|
-
programs/mythfilldatabase/filldata.cpp
2275 2275 2276 2276 for (mapiter = proglist->begin(); mapiter != proglist->end(); ++mapiter) 2277 2277 { 2278 MSqlQuery query(MSqlQuery::InitCon()) ;2278 MSqlQuery query(MSqlQuery::InitCon()), chanQuery(MSqlQuery::InitCon()); 2279 2279 2280 2280 if (mapiter.key() == "") 2281 2281 continue; 2282 2282 2283 2283 int chanid = 0; 2284 2284 2285 query.prepare("SELECT chanid FROM channel WHERE sourceid = :ID AND "2285 chanQuery.prepare("SELECT chanid FROM channel WHERE sourceid = :ID AND " 2286 2286 "xmltvid = :XMLTVID;"); 2287 query.bindValue(":ID", id);2288 query.bindValue(":XMLTVID", mapiter.key());2287 chanQuery.bindValue(":ID", id); 2288 chanQuery.bindValue(":XMLTVID", mapiter.key()); 2289 2289 2290 query.exec();2290 chanQuery.exec(); 2291 2291 2292 if (! query.isActive() || query.size() <= 0)2292 if (!chanQuery.isActive() || chanQuery.size() <= 0) 2293 2293 { 2294 2294 cerr << "Unknown xmltv channel identifier: " << mapiter.key() 2295 2295 << endl << "Skipping channel.\n"; 2296 2296 continue; 2297 2297 } 2298 2298 2299 while ( query.next())2299 while (chanQuery.next()) 2300 2300 { 2301 chanid = query.value(0).toInt();2301 chanid = chanQuery.value(0).toInt(); 2302 2302 2303 2303 if (chanid == 0) 2304 2304 {