diff options
author | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2007-04-17 17:36:02 +0000 |
---|---|---|
committer | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2007-04-17 17:36:02 +0000 |
commit | a85f88f780138c94009dd20c157d69beb903123f (patch) | |
tree | 34a5eff5318988c2ac8e7ed9eedd6744edcf059d /pages | |
parent | 3c4be91ad8ef4b7b9e50f9510a864b2f31cc37c2 (diff) | |
download | vdr-plugin-live-a85f88f780138c94009dd20c157d69beb903123f.tar.gz vdr-plugin-live-a85f88f780138c94009dd20c157d69beb903123f.tar.bz2 |
added missing features 'allowed repeats' and 'only repeats within ... days'
Diffstat (limited to 'pages')
-rw-r--r-- | pages/edit_searchtimer.ecpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pages/edit_searchtimer.ecpp b/pages/edit_searchtimer.ecpp index 7328253..ddf3e21 100644 --- a/pages/edit_searchtimer.ecpp +++ b/pages/edit_searchtimer.ecpp @@ -60,6 +60,8 @@ using namespace vdrlive; bool useextepginfo = false; string extepgvalues[]; bool avoidrepeats = false; + int allowedrepeats = 0; + int repeatswithindays = 0; bool comparetitle = false; bool comparesubtitle = false; bool comparesummary = false; @@ -170,6 +172,8 @@ Blacklists blacklists; searchtimer->SetAvoidRepeats(avoidrepeats); if (avoidrepeats) { + searchtimer->SetAllowedRepeats(allowedrepeats); + searchtimer->SetRepeatsWithinDays(repeatswithindays); searchtimer->SetCompareTitle(comparetitle); searchtimer->SetCompareSubtitle(comparesubtitle); searchtimer->SetCompareSummary(comparesummary); @@ -273,6 +277,8 @@ Blacklists blacklists; extepgvalues.push_back(""); } avoidrepeats = searchtimer->AvoidRepeats(); + allowedrepeats = searchtimer->AllowedRepeats(); + repeatswithindays = searchtimer->RepeatsWithinDays(); comparetitle = searchtimer->CompareTitle(); comparesubtitle = searchtimer->CompareSubtitle(); comparesummary = searchtimer->CompareSummary(); @@ -638,6 +644,12 @@ Blacklists blacklists; onclick="changedavoidrepeats(this)" id="avoidrepeats"/> <div id="avoidrepeatssettings" style="display: none"> <table border="0" cellpadding="0" cellspacing="0"> + <tr> + <td><$ tr("Allowed repeats") $>:</td> + <td> + <input type="text" size="3" maxlength="3" name="allowedrepeats" value="<$ allowedrepeats $>" /> <$ tr("Only repeats within ... days") $>:<input type="text" size="3" maxlength="3" name="repeatswithindays" value="<$ repeatswithindays $>" /> + </td> + </tr> <tr> <td><$ tr("Compare title" ) $>:</td> <td><input type="checkbox" name="comparetitle" value="1" <{ CHECKIF(comparetitle) }>/> |