controlapi: minor alignments to TangoCashs repo

Origin commit data
------------------
Branch: ni/coolstream
Commit: d78afb0157
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-10-07 (Fri, 07 Oct 2022)

Origin message was:
------------------
- controlapi: minor alignments to TangoCashs repo

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

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2022-10-07 21:02:30 +02:00
parent 8d417bfe44
commit deac0394cb

View File

@@ -231,7 +231,7 @@ const CControlAPI::TyCgiCall CControlAPI::yCgiCallList[]=
{"screenshot", &CControlAPI::ScreenshotCGI, ""}, {"screenshot", &CControlAPI::ScreenshotCGI, ""},
#endif #endif
#ifdef ENABLE_GRAPHLCD #ifdef ENABLE_GRAPHLCD
{"glcdscreenshot", &CControlAPI::GlcdScreenshotCGI, ""}, {"glcdscreenshot", &CControlAPI::GlcdScreenshotCGI, ""},
#endif #endif
// boxcontrol - devices // boxcontrol - devices
{"volume", &CControlAPI::VolumeCGI, "text/plain"}, {"volume", &CControlAPI::VolumeCGI, "text/plain"},
@@ -3411,6 +3411,7 @@ void CControlAPI::xmltvm3uCGI(CyhookHandler *hh)
// build url // build url
std::string url = host; std::string url = host;
/* strip off optional custom port */
if (url.rfind(":") != 4) if (url.rfind(":") != 4)
url = url.substr(0, url.rfind(":")); // strip off optional custom port url = url.substr(0, url.rfind(":")); // strip off optional custom port
url += ":"; url += ":";
@@ -3466,6 +3467,7 @@ void CControlAPI::xmltvlistCGI(CyhookHandler *hh)
std::vector<std::string>::iterator it; std::vector<std::string>::iterator it;
std::vector<std::string> url_list; std::vector<std::string> url_list;
std::string tmp; std::string tmp;
std::string::size_type i = 0;
if (!hh->ParamList["webtv"].empty()) if (!hh->ParamList["webtv"].empty())
{ {