Feature #1328 ยป improve-subtitle-comparison.diff
menu_searchedit.c | ||
---|---|---|
SearchActiveModes[2] = strdup(tr("user-defined"));
|
||
CompareSubtitleModes[0] = strdup(trVDR("no"));
|
||
CompareSubtitleModes[1] = strdup(tr("if present"));
|
||
CompareSubtitleModes[2] = strdup(tr("compare if present"));
|
||
CompareDateModes[0] = strdup(trVDR("no"));
|
||
CompareDateModes[1] = strdup(tr("same day"));
|
||
... | ... | |
if (data.allowedRepeats > 0)
|
||
Add(new cMenuEditIntItem(IndentMenuItem(tr("Only repeats within ... days"),2), &data.repeatsWithinDays, 0, 999));
|
||
Add(new cMenuEditBoolItem(IndentMenuItem(tr("Compare title"),2), &data.compareTitle, trVDR("no"), trVDR("yes")));
|
||
Add(new cMenuEditStraItem(IndentMenuItem(tr("Compare subtitle"),2), &data.compareSubtitle, 2, CompareSubtitleModes));
|
||
Add(new cMenuEditStraItem(IndentMenuItem(tr("Compare subtitle"),2), &data.compareSubtitle, 3, CompareSubtitleModes));
|
||
Add(new cMenuEditBoolItem(IndentMenuItem(tr("Compare summary"),2), &data.compareSummary, trVDR("no"), trVDR("yes")));
|
||
if (data.compareSummary)
|
||
Add(new cMenuEditIntItem(IndentMenuItem(tr("Min. match in %"),3), &data.compareSummaryMatchInPercent, 1, 100));
|
||
... | ... | |
free(DelModes[i]);
|
||
for(i=0; i<=2; i++)
|
||
free(SearchActiveModes[i]);
|
||
for(i=0; i<=1; i++)
|
||
for(i=0; i<=2; i++)
|
||
free(CompareSubtitleModes[i]);
|
||
for(i=0; i<=3; i++)
|
||
free(CompareDateModes[i]);
|
menu_searchedit.h | ||
---|---|---|
char *BlacklistModes[4];
|
||
char *DelModes[3];
|
||
char *SearchActiveModes[3];
|
||
char *CompareSubtitleModes[2];
|
||
char *CompareSubtitleModes[3];
|
||
char *CompareDateModes[4];
|
||
std::vector<int> contentStringIDs;
|
||
int useContentDescriptors;
|
recdone.c | ||
---|---|---|
}
|
||
if ((!compareTitle || rTitle == eTitle) &&
|
||
(!compareSubtitle || (rSubtitle == eSubtitle && rSubtitle !="")) &&
|
||
(!compareSubtitle || (rSubtitle == eSubtitle && (rSubtitle !="" || compareSubtitle == 2))) &&
|
||
(!compareSummary || DescriptionMatches(eRawDescr.c_str(), rRawDescr.c_str(), matchLimit)) &&
|
||
(catvaluesAvoidRepeat == 0 || CatValuesMatch(catvaluesAvoidRepeat, rDescr, eDescr)) &&
|
||
(compareExpression.size() == 0 || MatchesInExpression(compareExpression, recDone, event)))
|