diff options
-rw-r--r-- | epgsearch.h | 4 | ||||
-rw-r--r-- | i18n.cpp | 44 | ||||
-rw-r--r-- | pages/edit_searchtimer.ecpp | 12 |
3 files changed, 60 insertions, 0 deletions
diff --git a/epgsearch.h b/epgsearch.h index 4ca37f4..0b80ecb 100644 --- a/epgsearch.h +++ b/epgsearch.h @@ -99,6 +99,10 @@ public: void SetExtEPGInfo(std::vector< std::string > ExtEPGInfo) { m_ExtEPGInfo = ExtEPGInfo; } bool AvoidRepeats() const { return m_avoidrepeats; } void SetAvoidRepeats(bool avoidrepeats) { m_avoidrepeats = avoidrepeats; } + int AllowedRepeats() const { return m_allowedrepeats; } + void SetAllowedRepeats(int allowedrepeats) { m_allowedrepeats = allowedrepeats; } + int RepeatsWithinDays() const { return m_repeatsWithinDays; } + void SetRepeatsWithinDays(int repeatsWithinDays) { m_repeatsWithinDays = repeatsWithinDays; } bool CompareTitle() const { return m_compareTitle; } void SetCompareTitle(bool compareTitle) { m_compareTitle = compareTitle; } bool CompareSubtitle() const { return m_compareSubtitle; } @@ -1940,6 +1940,50 @@ const tI18nPhrase Phrases[] = { "",// TODO Dansk "",// TODO Èesky (Czech) }, + { "Allowed repeats", + "Erlaubte Wiederholungen", + "",// TODO + "",// Italiano + "",// TODO + "",// TODO + "Répétitions autorisées",// Francais Pat + "",// TODO + "Sallittujen uusintojen lukumäärä", + "",// TODO + "",// TODO + "",// TODO + "",// TODO + "",// TODO + "",// TODO + "",// TODO + "",// TODO + "",// TODO + "",// TODO Eesti + "",// TODO Dansk + "",// TODO Èesky (Czech) + }, + { "Only repeats within ... days", + "Nur Wiederh. innerhalb ... Tagen", + "",// TODO + "",// Italiano + "",// TODO + "",// TODO + "Que répétion, pendant ... jours",// Francais Pat + "",// TODO + "Vain uusinnat ... päivän sisällä", + "",// TODO + "",// TODO + "",// TODO + "",// TODO + "",// TODO + "",// TODO + "",// TODO + "",// TODO + "",// TODO + "",// TODO Eesti + "",// TODO Dansk + "",// TODO Èesky (Czech) + }, { "Compare title", "Vergleiche Titel", "",// TODO 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) }>/> |