From de27448e448d71d7c79ab8a8bc4647e00548f58f Mon Sep 17 00:00:00 2001 From: TangoCash Date: Fri, 25 Mar 2016 08:46:25 +0100 Subject: [PATCH] add option to reload channels via webif without saving first Origin commit data ------------------ Commit: https://github.com/TangoCash/neutrino-tangos/commit/0c0a1a1d5f2b6ab6d7f393baab56e5be2bf7863b Author: TangoCash Date: 2016-03-25 (Fri, 25 Mar 2016) Signed-off-by: Thilo Graf Where is this documented? Making changes to the API without any documentation is quite unpleasant. Unfortunately, this has happened several times before. It would be nice if someone could address this issue. see: ./neutrino/doc/nhttpd/nhttpd_controlapi.html --- src/nhttpd/tuxboxapi/controlapi.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nhttpd/tuxboxapi/controlapi.cpp b/src/nhttpd/tuxboxapi/controlapi.cpp index 979d1a9f1..3119d42e9 100644 --- a/src/nhttpd/tuxboxapi/controlapi.cpp +++ b/src/nhttpd/tuxboxapi/controlapi.cpp @@ -2173,7 +2173,8 @@ void CControlAPI::ReloadPluginsCGI(CyhookHandler *hh) void CControlAPI::ReloadChannelsCGI(CyhookHandler *hh) { - CServiceManager::getInstance()->SaveServices(true, true); + if(hh->ParamList["hardreload"].empty()) + CServiceManager::getInstance()->SaveServices(true, true); NeutrinoAPI->Zapit->reinitChannels(); CNeutrinoApp::getInstance()->SDTreloadChannels = false; hh->SendOk();