CControlAPI::EpgCGI fix control/epg

Origin commit data
------------------
Branch: ni/coolstream
Commit: 03b7151563
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2013-10-12 (Sat, 12 Oct 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2013-10-12 21:39:41 +02:00
parent 8beca3da3f
commit 345419d01f

View File

@@ -1272,13 +1272,14 @@ void CControlAPI::epgDetailList(CyhookHandler *hh) {
//-------------------------------------------------------------------------
void CControlAPI::EpgCGI(CyhookHandler *hh) {
NeutrinoAPI->eList.clear();
bool param_empty = hh->ParamList.empty();
hh->SetHeader(HTTP_OK, "text/plain; charset=UTF-8"); // default
// Detailed EPG list in XML or JSON
if (!hh->ParamList["xml"].empty() || !hh->ParamList["json"].empty() || !hh->ParamList["detaillist"].empty()) {
epgDetailList(hh);
}
// 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");
bool isExt = (hh->ParamList["1"] == "ext");
CChannelEvent *event = NULL;