mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-02 02:11:11 +02:00
yWeb: rework for basic functionality
Based on the last changes by svenhoefer
This commit is contained in:
@@ -821,7 +821,7 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos)
|
||||
spaceoffset = 7 * fontW;
|
||||
box_width2 = box_width-(spaceoffset+xpos);
|
||||
|
||||
//NI channellogo
|
||||
// channellogo
|
||||
ypos+= sheight;
|
||||
sprintf(buf, "%llx.png", channel->getChannelID() & 0xFFFFFFFFFFFFULL);
|
||||
g_Font[font_small]->RenderString(xpos, ypos, box_width, "Logo:" , COL_INFOBAR_TEXT);
|
||||
|
@@ -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();
|
||||
|
@@ -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);
|
||||
|
@@ -128,7 +128,7 @@ class CServiceManager
|
||||
|
||||
CZapitChannel* FindChannel(const t_channel_id channel_id, bool * current_is_nvod = NULL);
|
||||
CZapitChannel* FindChannelByName(std::string name);
|
||||
CZapitChannel* FindChannelByPattern(std::string pattern); //NI
|
||||
CZapitChannel* FindChannelByPattern(std::string pattern);
|
||||
CZapitChannel* FindCurrentChannel(const t_channel_id channel_id);
|
||||
CZapitChannel* FindChannel48(const t_channel_id channel_id);
|
||||
CZapitChannel* FindChannelFuzzy(const t_channel_id channel_id,
|
||||
|
@@ -220,7 +220,7 @@ CZapitChannel * CServiceManager::FindChannelByName(std::string name)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
//NI
|
||||
|
||||
CZapitChannel * CServiceManager::FindChannelByPattern(std::string pattern)
|
||||
{
|
||||
for (channel_map_iterator_t it = allchans.begin(); it != allchans.end(); ++it) {
|
||||
|
Reference in New Issue
Block a user