mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 15:02:56 +02:00
add option to reload channels via webif without saving first
Origin commit data
------------------
Commit: 0c0a1a1d5f
Author: TangoCash <eric@loxat.de>
Date: 2016-03-25 (Fri, 25 Mar 2016)
Signed-off-by: Thilo Graf <dbt@novatux.de>
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
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user