- tuxboxapi: remove obsolete Tuxbox.LogosURL from getLogoFile()

This commit is contained in:
vanhofen
2016-08-26 15:14:09 +02:00
committed by svenhoefer
parent 7ac0ed9093
commit 3e283469db
4 changed files with 6 additions and 6 deletions

View File

@@ -1114,7 +1114,7 @@ std::string CControlAPI::_GetBouquetWriteItem(CyhookHandler *hh, CZapitChannel *
result += hh->outPair("id", string_printf(PRINTF_CHANNEL_ID_TYPE_NO_LEADING_ZEROS, channel->getChannelID()), true); result += hh->outPair("id", string_printf(PRINTF_CHANNEL_ID_TYPE_NO_LEADING_ZEROS, channel->getChannelID()), true);
result += hh->outPair("short_id", string_printf(PRINTF_CHANNEL_ID_TYPE_NO_LEADING_ZEROS, channel->getChannelID()&0xFFFFFFFFFFFFULL), true); result += hh->outPair("short_id", string_printf(PRINTF_CHANNEL_ID_TYPE_NO_LEADING_ZEROS, channel->getChannelID()&0xFFFFFFFFFFFFULL), true);
result += hh->outPair("name", hh->outValue(channel->getName()), true); result += hh->outPair("name", hh->outValue(channel->getName()), true);
result += hh->outPair("logo", hh->outValue(NeutrinoAPI->getLogoFile(hh->WebserverConfigList["Tuxbox.LogosURL"], channel->getChannelID())), false); result += hh->outPair("logo", hh->outValue(NeutrinoAPI->getLogoFile(channel->getChannelID())), false);
if (bouquetNr > -1) if (bouquetNr > -1)
{ {
result += hh->outNext(); result += hh->outNext();
@@ -3142,7 +3142,7 @@ void CControlAPI::xmltvm3uCGI(CyhookHandler *hh)
CZapitChannel * channel = chanlist[j]; CZapitChannel * channel = chanlist[j];
std::string bouq_name = g_bouquetManager->Bouquets[i]->Name; std::string bouq_name = g_bouquetManager->Bouquets[i]->Name;
std::string chan_id_short = string_printf(PRINTF_CHANNEL_ID_TYPE_NO_LEADING_ZEROS, channel->getChannelID() & 0xFFFFFFFFFFFFULL); std::string chan_id_short = string_printf(PRINTF_CHANNEL_ID_TYPE_NO_LEADING_ZEROS, channel->getChannelID() & 0xFFFFFFFFFFFFULL);
result += "#EXTINF:-1 tvg-id=\""+chan_id_short+"\" tvg-logo=\""+NeutrinoAPI->getLogoFile("",channel->getChannelID())+"\" group-title=\""+bouq_name+"\", [COLOR gold]"+channel->getName()+"[/COLOR]\n"; result += "#EXTINF:-1 tvg-id=\""+chan_id_short+"\" tvg-logo=\""+NeutrinoAPI->getLogoFile(channel->getChannelID())+"\" group-title=\""+bouq_name+"\", [COLOR gold]"+channel->getName()+"[/COLOR]\n";
result += url+string_printf(PRINTF_CHANNEL_ID_TYPE_NO_LEADING_ZEROS, channel->getChannelID())+"\n"; result += url+string_printf(PRINTF_CHANNEL_ID_TYPE_NO_LEADING_ZEROS, channel->getChannelID())+"\n";
} }
} }
@@ -3223,7 +3223,7 @@ void CControlAPI::logoCGI(CyhookHandler *hh)
sscanf(hh->ParamList["1"].c_str(), sscanf(hh->ParamList["1"].c_str(),
SCANF_CHANNEL_ID_TYPE, SCANF_CHANNEL_ID_TYPE,
&channel_id); &channel_id);
hh->Write(NeutrinoAPI->getLogoFile(hh->WebserverConfigList["Tuxbox.LogosURL"], channel_id)); hh->Write(NeutrinoAPI->getLogoFile(channel_id));
} }
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
/** Get Config File or save values to given config file /** Get Config File or save values to given config file

View File

@@ -523,7 +523,7 @@ std::string CNeutrinoAPI::getCryptInfoAsString(void)
} }
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
std::string CNeutrinoAPI::getLogoFile(std::string _logoURL __attribute__((unused)), t_channel_id channelId) std::string CNeutrinoAPI::getLogoFile(t_channel_id channelId)
{ {
std::string channelName = GetServiceName(channelId); std::string channelName = GetServiceName(channelId);
std::string logoString; std::string logoString;

View File

@@ -84,7 +84,7 @@ public:
std::string getVideoFramerateAsString(void); std::string getVideoFramerateAsString(void);
std::string getAudioInfoAsString(void); std::string getAudioInfoAsString(void);
std::string getCryptInfoAsString(void); std::string getCryptInfoAsString(void);
std::string getLogoFile(std::string _logoURL, t_channel_id channelId); std::string getLogoFile(t_channel_id channelId);
public: public:
CNeutrinoAPI(); CNeutrinoAPI();
~CNeutrinoAPI(void); ~CNeutrinoAPI(void);

View File

@@ -600,7 +600,7 @@ std::string CNeutrinoYParser::func_get_logo_name(CyhookHandler *hh, std::string
else if (access((LogosURL + "/" + channelIdShort + fileType[i]).c_str(), R_OK) == 0) else if (access((LogosURL + "/" + channelIdShort + fileType[i]).c_str(), R_OK) == 0)
return LogosURL + "/" + channelIdShort + fileType[i]; return LogosURL + "/" + channelIdShort + fileType[i];
else // fallback to default logos else // fallback to default logos
return NeutrinoAPI->getLogoFile("", chId); return NeutrinoAPI->getLogoFile(chId);
} }
} }
return ""; return "";