yWeb: rework for basic functionality

Based on the last changes by svenhoefer
This commit is contained in:
2022-11-07 21:22:45 +01:00
parent 8189f3c86d
commit ccf604cc8e
145 changed files with 11179 additions and 596 deletions

View File

@@ -878,7 +878,7 @@ std::string CNeutrinoYParser::func_get_boxmodel(CyhookHandler *, std::string)
//-------------------------------------------------------------------------
// y-func : get stream info
//-------------------------------------------------------------------------
std::string CNeutrinoYParser::func_get_current_stream_info(CyhookHandler *hh, std::string)
std::string CNeutrinoYParser::func_get_current_stream_info(CyhookHandler *hh, std::string)
{
CZapitClient::CCurrentServiceInfo serviceinfo;
@@ -896,7 +896,6 @@ std::string CNeutrinoYParser::func_get_current_stream_info(CyhookHandler *hh, s
hh->ParamList["ServiceName"] = NeutrinoAPI->GetServiceName(CZapit::getInstance()->GetCurrentChannelID());
hh->ParamList["Url"] = CZapit::getInstance()->GetCurrentChannel()->getUrl().c_str();
hh->ParamList["VideoFormat"] = NeutrinoAPI->getVideoResolutionAsString();
// hh->ParamList["BitRate"] = NeutrinoAPI->getVideoFramerateAsString();
hh->ParamList["AspectRatio"] = NeutrinoAPI->getVideoAspectRatioAsString();
hh->ParamList["FPS"] = NeutrinoAPI->getVideoFramerateAsString();
hh->ParamList["AudioType"] = NeutrinoAPI->getAudioInfoAsString();

View File

@@ -413,7 +413,7 @@ std::string yExecuteScript(std::string cmd) {
script = cmd;
// get file
std::string fullfilename;
script += ".sh"; //add script extention
script += ".sh"; //add script extension
char cwd[255];
getcwd(cwd, 254);