From af9609c56286ab2673bebbdcb1ec9d27dc85165b 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 ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/49762cac5c14076a9e6dbada7135dbf87c4fc00d Author: TangoCash Date: 2016-03-25 (Fri, 25 Mar 2016) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- 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 e67719844..f8309af38 100644 --- a/src/nhttpd/tuxboxapi/controlapi.cpp +++ b/src/nhttpd/tuxboxapi/controlapi.cpp @@ -2182,7 +2182,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();