mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 23:42:51 +02:00
fix logo url, white space in xmltv.m3u
Origin commit data
------------------
Branch: ni/coolstream
Commit: 2ca0e70a57
Author: TangoCash <eric@loxat.de>
Date: 2018-09-09 (Sun, 09 Sep 2018)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -3316,6 +3316,8 @@ void CControlAPI::xmltvm3uCGI(CyhookHandler *hh)
|
|||||||
url = "http://"+hh->ParamList["host"];
|
url = "http://"+hh->ParamList["host"];
|
||||||
else
|
else
|
||||||
url = "http://"+hh->HeaderList["Host"];
|
url = "http://"+hh->HeaderList["Host"];
|
||||||
|
|
||||||
|
std::string lurl = url;
|
||||||
/* strip off optional custom port */
|
/* strip off optional custom port */
|
||||||
if (url.rfind(":") != 4)
|
if (url.rfind(":") != 4)
|
||||||
url = url.substr(0, url.rfind(":"));
|
url = url.substr(0, url.rfind(":"));
|
||||||
@@ -3338,7 +3340,7 @@ void CControlAPI::xmltvm3uCGI(CyhookHandler *hh)
|
|||||||
CZapitChannel * channel = chanlist[j];
|
CZapitChannel * channel = chanlist[j];
|
||||||
std::string bouq_name = g_bouquetManager->Bouquets[i]->bName;
|
std::string bouq_name = g_bouquetManager->Bouquets[i]->bName;
|
||||||
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+"\", "+channel->getName()+"\n";
|
result += "#EXTINF:-1 tvg-id=\""+chan_id_short+"\" tvg-logo=\""+lurl+NeutrinoAPI->getLogoFile(channel->getChannelID())+"\" group-title=\""+bouq_name+"\","+channel->getName()+"\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";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user