Ticket #4051: myth_eitdata.diff
File myth_eitdata.diff, 911 bytes (added by , 16 years ago) |
---|
-
libs/libmythtv/eithelper.cpp
old new void EITHelper::AddEIT(const DVBEventInf 390 390 } 391 391 392 392 QDateTime starttime = MythUTCToLocal(eit->StartTimeUTC(i)); 393 QDateTime curtime = QDateTime::currentDateTime(); 394 // If the starttime is more than 30 days, assume the EIT data is invalid 395 // Most DVB EIT is of the order of 7-14 days 396 if (starttime < curtime.addDays(30)) 397 { 393 398 EITFixUp::TimeFix(starttime); 394 399 QDateTime endtime = starttime.addSecs(eit->DurationInSeconds(i)); 395 400 … … void EITHelper::AddEIT(const DVBEventInf 402 407 video_props, 403 408 seriesId, programId); 404 409 db_events.enqueue(event); 410 } 405 411 } 406 412 } 407 413