Ticket #2655: mythtvsmartdup.2.patch
File mythtvsmartdup.2.patch, 4.0 KB (added by , 17 years ago) |
---|
-
libs/libmythtv/recordingtypes.h
35 35 kDupCheckNone = 0x01, 36 36 kDupCheckSub = 0x02, 37 37 kDupCheckDesc = 0x04, 38 kDupCheckSubDesc = 0x06 38 kDupCheckSubDesc = 0x06, 39 kDupCheckSmart = 0x08 39 40 }; 40 41 41 42 enum RecSearchType -
libs/libmythtv/sr_items.h
321 321 : SRSelectSetting(_parent, "dupMethodList", QObject::tr("[ Match duplicates with ]"), _group, 322 322 "dupmethod", _list) 323 323 { 324 addSelection(QObject::tr("Match duplicates using subtitle else description"), kDupCheckSmart); 324 325 addSelection(QObject::tr("Match duplicates using subtitle & description"), kDupCheckSubDesc); 325 326 addSelection(QObject::tr("Match duplicates using subtitle"), kDupCheckSub); 326 327 addSelection(QObject::tr("Match duplicates using description"), kDupCheckDesc); 327 328 addSelection(QObject::tr("Don't match duplicates"), kDupCheckNone); 328 setValue(kDupCheckS ubDesc);329 setValue(kDupCheckSmart); 329 330 _parent->setDupMethodObj(this); 330 331 } 331 332 }; -
libs/libmythtv/programinfo.cpp
103 103 parentid = 0; 104 104 rectype = kNotRecording; 105 105 dupin = kDupsInAll; 106 dupmethod = kDupCheckS ubDesc;106 dupmethod = kDupCheckSmart; 107 107 108 108 sourceid = 0; 109 109 inputid = 0; … … 1349 1349 (description.lower() != other.description.lower()))) 1350 1350 return false; 1351 1351 1352 if ((dupmethod & kDupCheckSmart) && 1353 ((subtitle == "" && other.subtitle == "" && description.lower() != other.description.lower()) || 1354 (subtitle.lower() != other.subtitle.lower()) || 1355 (description == "" && subtitle == ""))) 1356 return false; 1357 1352 1358 return true; 1353 1359 } 1354 1360 -
libs/libmythtv/scheduledrecording.cpp
788 788 profile->setValue(QObject::tr("Default")); 789 789 790 790 dupin->setValue(kDupsInAll); 791 dupmethod->setValue(kDupCheckS ubDesc);791 dupmethod->setValue(kDupCheckSmart); 792 792 maxepisodes->setValue(0); 793 793 startoffset->setValue(gContext->GetNumSetting("DefaultStartOffset", 0)); 794 794 endoffset->setValue(gContext->GetNumSetting("DefaultEndOffset", 0)); -
programs/mythbackend/scheduler.cpp
2220 2220 " AND " 2221 2221 " (((RECTABLE.dupmethod & 0x04) = 0) OR (program.description <> '' " 2222 2222 " AND program.description = oldrecorded.description)) " 2223 " AND " 2224 " (((RECTABLE.dupmethod & 0x08) = 0) OR (program.subtitle <> '' " 2225 " AND program.subtitle = oldrecorded.subtitle) OR (program.subtitle = '' " 2226 " AND oldrecorded.subtitle = '' AND program.description <> '' " 2227 " AND program.description = oldrecorded.description)) " 2223 2228 " ) " 2224 2229 " ) " 2225 2230 " ) " … … 2247 2252 " AND " 2248 2253 " (((RECTABLE.dupmethod & 0x04) = 0) OR (program.description <> '' " 2249 2254 " AND program.description = recorded.description)) " 2255 " AND " 2256 " (((RECTABLE.dupmethod & 0x08) = 0) OR (program.subtitle <> '' " 2257 " AND program.subtitle = recorded.subtitle) OR (program.subtitle = '' " 2258 " AND recorded.subtitle = '' AND program.description <> '' " 2259 " AND program.description = recorded.description)) " 2250 2260 " ) " 2251 2261 " ) " 2252 2262 " ) "