summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--epgsearch.cpp8
-rw-r--r--epgsearch.h1
-rw-r--r--i18n.cpp22
-rw-r--r--pages/searchtimers.ecpp4
4 files changed, 35 insertions, 0 deletions
diff --git a/epgsearch.cpp b/epgsearch.cpp
index cd56605..9a4314c 100644
--- a/epgsearch.cpp
+++ b/epgsearch.cpp
@@ -362,6 +362,14 @@ bool SearchTimers::Delete(std::string const& id)
return false;
}
+void SearchTimers::TriggerUpdate()
+{
+ Epgsearch_updatesearchtimers_v1_0 service;
+ service.showMessage = true;
+ if ( !CheckEpgsearchVersion() || cPluginManager::CallFirstService("Epgsearch-updatesearchtimers-v1.0", &service) == 0 )
+ throw HtmlError( tr("EPGSearch version outdated! Please update.") );
+}
+
bool SearchTimer::BlacklistSelected(int id) const
{
for(unsigned int i=0; i<m_blacklistIDs.size(); i++)
diff --git a/epgsearch.h b/epgsearch.h
index be8bf0c..c882eed 100644
--- a/epgsearch.h
+++ b/epgsearch.h
@@ -265,6 +265,7 @@ public:
SearchTimer* GetByTimerId( std::string const& id );
bool ToggleActive(std::string const& id);
bool Delete(std::string const& id);
+ void TriggerUpdate();
private:
TimerList m_timers;
};
diff --git a/i18n.cpp b/i18n.cpp
index fd05ae0..f45dc82 100644
--- a/i18n.cpp
+++ b/i18n.cpp
@@ -4209,6 +4209,28 @@ const tI18nPhrase Phrases[] = {
"", // Dansk
"", // Czech
},
+ { "Trigger search timer update", // English
+ "Suchtimer-Update starten", // Deutsch
+ "", // Slovenski
+ "", // Italiano
+ "", // Nederlands
+ "", // Português
+ "", // Français
+ "", // Norsk
+ "", // Finnish
+ "", // Polski
+ "", // Español
+ "", // Greek
+ "", // Svenska
+ "", // Românã
+ "", // Magyar
+ "", // Català
+ "", // Russian
+ "", // Hrvatski
+ "", // Eesti
+ "", // Dansk
+ "", // Czech
+ },
/*
{ "", // English
"", // Deutsch
diff --git a/pages/searchtimers.ecpp b/pages/searchtimers.ecpp
index 95aa7b6..8f4c437 100644
--- a/pages/searchtimers.ecpp
+++ b/pages/searchtimers.ecpp
@@ -30,6 +30,8 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");
if (action == "delete")
timers.Delete(searchtimerid);
}
+ if (action == "update")
+ timers.TriggerUpdate();
</%cpp>
<& pageelems.doc_type &>
<html>
@@ -83,4 +85,6 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");
<%def searchtimer_actions>
<a href="edit_searchtimer.html"><$ tr("New search timer") $></a>
+<span class="sep">|</span>
+<a href="searchtimers.html?action=update"><$ tr("Trigger search timer update") $></a>
</%def>