mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
CControlAPI::EpgCGI fix control/epg
This commit is contained in:
@@ -1272,13 +1272,14 @@ void CControlAPI::epgDetailList(CyhookHandler *hh) {
|
|||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
void CControlAPI::EpgCGI(CyhookHandler *hh) {
|
void CControlAPI::EpgCGI(CyhookHandler *hh) {
|
||||||
NeutrinoAPI->eList.clear();
|
NeutrinoAPI->eList.clear();
|
||||||
|
bool param_empty = hh->ParamList.empty();
|
||||||
hh->SetHeader(HTTP_OK, "text/plain; charset=UTF-8"); // default
|
hh->SetHeader(HTTP_OK, "text/plain; charset=UTF-8"); // default
|
||||||
// Detailed EPG list in XML or JSON
|
// Detailed EPG list in XML or JSON
|
||||||
if (!hh->ParamList["xml"].empty() || !hh->ParamList["json"].empty() || !hh->ParamList["detaillist"].empty()) {
|
if (!hh->ParamList["xml"].empty() || !hh->ParamList["json"].empty() || !hh->ParamList["detaillist"].empty()) {
|
||||||
epgDetailList(hh);
|
epgDetailList(hh);
|
||||||
}
|
}
|
||||||
// Standard list normal or extended
|
// Standard list normal or extended
|
||||||
else if (hh->ParamList.empty() || hh->ParamList["1"] == "ext") {
|
else if (param_empty || hh->ParamList["1"] == "ext") {
|
||||||
hh->SetHeader(HTTP_OK, "text/plain; charset=UTF-8");
|
hh->SetHeader(HTTP_OK, "text/plain; charset=UTF-8");
|
||||||
bool isExt = (hh->ParamList["1"] == "ext");
|
bool isExt = (hh->ParamList["1"] == "ext");
|
||||||
CChannelEvent *event = NULL;
|
CChannelEvent *event = NULL;
|
||||||
|
Reference in New Issue
Block a user