Ticket #3299: datadirect_update.patch
File datadirect_update.patch, 1.2 KB (added by , 17 years ago) |
---|
-
libs/libmythtv/datadirect.cpp
old new bool DataDirectProcessor::SaveLineupChan 1479 1479 1480 1480 bool DataDirectProcessor::UpdateListings(uint sourceid) 1481 1481 { 1482 QString a, b, c, lineupid; 1483 if (!SourceUtil::GetListingsLoginData(sourceid, a, b, c, lineupid)) 1484 return false; 1485 1482 1486 MSqlQuery query(MSqlQuery::DDCon()); 1483 1487 query.prepare( 1484 1488 "SELECT xmltvid " 1485 "FROM channel " 1486 "WHERE sourceid = :SOURCEID"); 1487 query.bindValue(":SOURCEID", sourceid); 1489 "FROM channel LEFT JOIN videosource " 1490 " ON channel.sourceid = videosource.sourceid " 1491 "WHERE videosource.lineupid = :LINEUPID"); 1492 query.bindValue(":LINEUPID", lineupid); 1488 1493 1489 1494 if (!query.exec() || !query.isActive()) 1490 1495 { … … bool DataDirectProcessor::UpdateListings 1492 1497 return false; 1493 1498 } 1494 1499 1495 QString a, b, c, lineupid;1496 if (!SourceUtil::GetListingsLoginData(sourceid, a, b, c, lineupid))1497 return false;1498 1499 1500 QMap<QString,bool> xmltvids; 1500 1501 while (query.next()) 1501 1502 {