diff --git a/mythtv/libs/libmyth/programinfo.cpp b/mythtv/libs/libmyth/programinfo.cpp
index 2a253d2..471d53b 100644
a
|
b
|
bool ProgramInfo::IsSameProgram(const ProgramInfo& other) const |
1795 | 1795 | |
1796 | 1796 | if (!programid.isEmpty() && !other.programid.isEmpty()) |
1797 | 1797 | return programid == other.programid; |
| 1798 | |
| 1799 | if ((dupmethod & kDupCheckSubThenDesc) && |
| 1800 | ((!subtitle.isEmpty()&& |
| 1801 | (subtitle.toLower() == other.subtitle.toLower() || |
| 1802 | subtitle.toLower() == other.description.toLower())) || |
| 1803 | (!description.isEmpty()&& |
| 1804 | (description.toLower() == other.subtitle.toLower() || |
| 1805 | description.toLower() == other.description.toLower())) |
| 1806 | )) |
| 1807 | return true; |
1798 | 1808 | |
1799 | 1809 | if ((dupmethod & kDupCheckSub) && |
1800 | 1810 | ((subtitle.isEmpty()) || |
… |
… |
bool ProgramInfo::IsSameProgram(const ProgramInfo& other) const |
1806 | 1816 | (description.toLower() != other.description.toLower()))) |
1807 | 1817 | return false; |
1808 | 1818 | |
1809 | | if ((dupmethod & kDupCheckSubThenDesc) && |
1810 | | ((subtitle.isEmpty() && other.subtitle.isEmpty() && |
1811 | | description.toLower() != other.description.toLower()) || |
1812 | | (subtitle.toLower() != other.subtitle.toLower()) || |
1813 | | (description.isEmpty() && subtitle.isEmpty()))) |
1814 | | return false; |
1815 | | |
1816 | 1819 | return true; |
1817 | 1820 | } |
1818 | 1821 | |
diff --git a/mythtv/programs/mythbackend/scheduler.cpp b/mythtv/programs/mythbackend/scheduler.cpp
index c9837fe..2e86261 100644
a
|
b
|
void Scheduler::AddNewRecords(void) |
3329 | 3329 | " AND program.description = oldrecorded.description)) " |
3330 | 3330 | " AND " |
3331 | 3331 | " (((RECTABLE.dupmethod & 0x08) = 0) OR (program.subtitle <> '' " |
3332 | | " AND program.subtitle = oldrecorded.subtitle) OR (program.subtitle = '' " |
3333 | | " AND oldrecorded.subtitle = '' AND program.description <> '' " |
3334 | | " AND program.description = oldrecorded.description)) " |
| 3332 | " AND program.subtitle = oldrecorded.subtitle) " |
| 3333 | " OR (program.subtitle <> '' " |
| 3334 | " AND program.subtitle = oldrecorded.description )" |
| 3335 | " OR (program.description <> '' " |
| 3336 | " AND program.description = oldrecorded.description) " |
| 3337 | " OR (program.description <> '' " |
| 3338 | " AND program.description = oldrecorded.subtitle)) " |
3335 | 3339 | " ) " |
3336 | 3340 | " ) " |
3337 | 3341 | " ) " |
… |
… |
void Scheduler::AddNewRecords(void) |
3361 | 3365 | " AND program.description = recorded.description)) " |
3362 | 3366 | " AND " |
3363 | 3367 | " (((RECTABLE.dupmethod & 0x08) = 0) OR (program.subtitle <> '' " |
3364 | | " AND program.subtitle = recorded.subtitle) OR (program.subtitle = '' " |
3365 | | " AND recorded.subtitle = '' AND program.description <> '' " |
3366 | | " AND program.description = recorded.description)) " |
| 3368 | " AND program.subtitle = recorded.subtitle) " |
| 3369 | " OR (program.subtitle <> '' " |
| 3370 | " AND program.subtitle = recorded.description )" |
| 3371 | " OR (program.description <> '' " |
| 3372 | " AND program.description = recorded.description) " |
| 3373 | " OR (program.description <> '' " |
| 3374 | " AND program.description = recorded.subtitle)) " |
3367 | 3375 | " ) " |
3368 | 3376 | " ) " |
3369 | 3377 | " ) " |