diff --git a/mythtv/programs/mythmetadatalookup/lookup.cpp b/mythtv/programs/mythmetadatalookup/lookup.cpp
index b25b91f..0345094 100644
a
|
b
|
void LookerUpper::customEvent(QEvent *levent) |
316 | 320 | |
317 | 321 | LOG(VB_GENERAL, LOG_DEBUG, "I found the following data:"); |
318 | 322 | LOG(VB_GENERAL, LOG_DEBUG, |
| 323 | QString(" Input Type: %1").arg(lookup->GetData().typeName())); |
| 324 | LOG(VB_GENERAL, LOG_DEBUG, |
319 | 325 | QString(" Input Title: %1").arg(pginfo->GetTitle())); |
320 | 326 | LOG(VB_GENERAL, LOG_DEBUG, |
321 | 327 | QString(" Input Sub: %1").arg(pginfo->GetSubtitle())); |
322 | 328 | LOG(VB_GENERAL, LOG_DEBUG, |
| 329 | QString(" Input Chanid:%1").arg(pginfo->GetChanID())); |
| 330 | LOG(VB_GENERAL, LOG_DEBUG, |
| 331 | QString(" Input Start: %1").arg(pginfo->GetRecordingStartTime().toString())); |
| 332 | LOG(VB_GENERAL, LOG_DEBUG, |
| 333 | QString(" Input End: %1").arg(pginfo->GetRecordingEndTime().toString())); |
| 334 | LOG(VB_GENERAL, LOG_DEBUG, |
323 | 335 | QString(" Title: %1").arg(lookup->GetTitle())); |
324 | 336 | LOG(VB_GENERAL, LOG_DEBUG, |
325 | 337 | QString(" Subtitle: %1").arg(lookup->GetSubtitle())); |
… |
… |
void LookerUpper::customEvent(QEvent *levent) |
332 | 344 | LOG(VB_GENERAL, LOG_DEBUG, |
333 | 345 | QString(" User Rating: %1").arg(lookup->GetUserRating())); |
334 | 346 | |
335 | | if (!lookup->GetSubtype() == kProbableGenericTelevision) |
336 | | pginfo->SaveSeasonEpisode(lookup->GetSeason(), lookup->GetEpisode()); |
337 | | pginfo->SaveInetRef(lookup->GetInetref()); |
| 347 | // If the start time == the end time then this is actually a recording rule |
| 348 | // and updating it could corrupt data |
| 349 | if (pginfo->GetRecordingStartTime() != pginfo->GetRecordingEndTime()) { |
| 350 | LOG(VB_GENERAL, LOG_DEBUG, QString("Valid ProgramInfo - updating")); |
| 351 | if (!lookup->GetSubtype() == kProbableGenericTelevision) |
| 352 | pginfo->SaveSeasonEpisode(lookup->GetSeason(), lookup->GetEpisode()); |
| 353 | pginfo->SaveInetRef(lookup->GetInetref()); |
| 354 | } |
338 | 355 | |
339 | 356 | if (m_updaterules) |
340 | 357 | { |