Ticket #494: eitcrawl-lowerdb-load.2.diff
File eitcrawl-lowerdb-load.2.diff, 2.3 KB (added by , 18 years ago) |
---|
-
libs/libmythtv/eithelper.cpp
old new 3 3 // MythTV includes 4 4 #include "eithelper.h" 5 5 #include "mythdbcon.h" 6 #include "scheduledrecording.h"7 6 8 7 const uint EITHelper::kChunkSize = 20; 9 8 … … 120 119 121 120 if (counter > 0) 122 121 { 123 VERBOSE(VB_SCHEDULE, 124 QString("EITHelper: Added %1 scheduler events, running " 125 "scheduler to check for updates").arg(counter)); 126 ScheduledRecording::signalChange(-1); 127 QString msg = QString("Added %1 scheduler events").arg(counter); 128 gContext->LogEntry("DVB/ATSC Guide Scanner", LP_INFO, msg, ""); 122 VERBOSE(VB_SCHEDULE, QString("EITHelper: Added %1 events in this pass") 123 .arg(counter)); 129 124 } 130 125 } 131 126 -
libs/libmythtv/eitscanner.cpp
old new 11 11 12 12 #include "eitscanner.h" 13 13 #include "eithelper.h" 14 #include "scheduledrecording.h" 14 15 15 16 /** \class EITScanner 16 17 * \brief Acts as glue between DVBChannel, DVBSIParser, and EITHelper. … … 87 88 88 89 if (activeScan && (QDateTime::currentDateTime() > activeScanNextTrig)) 89 90 { 91 VERBOSE(VB_SCHEDULE, 92 QString("EITHelper: running scheduler to check for updates")); 93 ScheduledRecording::signalChange(-1); 94 90 95 if (activeScanNextChan == activeScanChannels.end()) 91 96 activeScanNextChan = activeScanChannels.begin(); 92 97 … … 98 103 activeScanNextChan++; 99 104 } 100 105 101 exitThreadCond.wait( 200); // sleep up to 200 ms.106 exitThreadCond.wait(1000); // sleep up to 1s. 102 107 } 103 108 } 104 109 … … 127 132 128 133 channel = NULL; 129 134 parser = NULL; 135 136 VERBOSE(VB_SCHEDULE, 137 QString("EITHelper: running scheduler to check for updates")); 138 ScheduledRecording::signalChange(-1); 130 139 } 131 140 132 141 void EITScanner::StartActiveScan(TVRec *_rec, uint max_seconds_per_source)