mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 07:22:57 +02:00
controlaip: add possibility to reload channellists
Origin commit data
------------------
Branch: ni/coolstream
Commit: 2a63ddaeb9
Author: vanhofen <vanhofen@gmx.de>
Date: 2015-10-21 (Wed, 21 Oct 2015)
Origin message was:
------------------
- controlaip: add possibility to reload channellists
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -182,6 +182,7 @@ const CControlAPI::TyCgiCall CControlAPI::yCgiCallList[]=
|
||||
{"version", &CControlAPI::VersionCGI, ""},
|
||||
{"reloadsetup", &CControlAPI::ReloadNeutrinoSetupCGI, ""},
|
||||
{"reloadplugins", &CControlAPI::ReloadPluginsCGI, ""},
|
||||
{"reloadchannels", &CControlAPI::ReloadChannelsCGI, ""},
|
||||
{"screenshot", &CControlAPI::ScreenshotCGI, ""},
|
||||
// boxcontrol - devices
|
||||
{"volume", &CControlAPI::VolumeCGI, "text/plain"},
|
||||
@@ -1657,6 +1658,14 @@ void CControlAPI::ReloadPluginsCGI(CyhookHandler *hh)
|
||||
hh->SendOk();
|
||||
}
|
||||
|
||||
void CControlAPI::ReloadChannelsCGI(CyhookHandler *hh)
|
||||
{
|
||||
CServiceManager::getInstance()->SaveServices(true, true);
|
||||
NeutrinoAPI->Zapit->reinitChannels();
|
||||
CNeutrinoApp::getInstance()->SDTreloadChannels = false;
|
||||
hh->SendOk();
|
||||
}
|
||||
|
||||
void CControlAPI::ScreenshotCGI(CyhookHandler *hh)
|
||||
{
|
||||
bool enableOSD = true;
|
||||
|
Reference in New Issue
Block a user