mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 07:22:57 +02:00
webtv/xmltv: add remote hostname as group prefix to see where the stream is come from
Origin commit data
------------------
Branch: ni/coolstream
Commit: 3d669081fd
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-12-21 (Fri, 21 Dec 2018)
Origin message was:
------------------
- webtv/xmltv: add remote hostname as group prefix to see where the stream is come from
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -3321,6 +3321,10 @@ void CControlAPI::xmltvm3uCGI(CyhookHandler *hh)
|
||||
else
|
||||
host = "http://" + hh->HeaderList["Host"];
|
||||
|
||||
// get hostname
|
||||
char hostname[HOST_NAME_MAX];
|
||||
gethostname(hostname, HOST_NAME_MAX);
|
||||
|
||||
// build url
|
||||
std::string url = host;
|
||||
/* strip off optional custom port */
|
||||
@@ -3350,6 +3354,7 @@ void CControlAPI::xmltvm3uCGI(CyhookHandler *hh)
|
||||
result += " tvg-logo=\"" + host + NeutrinoAPI->getLogoFile(channel->getChannelID()) + "\"";
|
||||
else
|
||||
result += " tvg-logo=\"\"";
|
||||
result += " group-prefix=\"" + std::string(hostname) + "\"";
|
||||
result += " group-title=\"" + bouq_name + "\",";
|
||||
result += channel->getName() + "\n";
|
||||
result += url + string_printf(PRINTF_CHANNEL_ID_TYPE_NO_LEADING_ZEROS, channel->getChannelID()) + "\n";
|
||||
|
Reference in New Issue
Block a user