mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 01:41:23 +02:00
- controlapi: fix xmltv.m3u output for channels without logo
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -3325,7 +3325,13 @@ 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=\"" + host + NeutrinoAPI->getLogoFile(channel->getChannelID()) + "\" group-title=\"" + bouq_name + "\"," + channel->getName() + "\n";
|
result += "#EXTINF:-1 tvg-id=\"" + chan_id_short + "\"";
|
||||||
|
if (!NeutrinoAPI->getLogoFile(channel->getChannelID()).empty())
|
||||||
|
result += " tvg-logo=\"" + host + NeutrinoAPI->getLogoFile(channel->getChannelID()) + "\"";
|
||||||
|
else
|
||||||
|
result += " tvg-logo=\"\"";
|
||||||
|
result += " group-title=\"" + bouq_name + "\",";
|
||||||
|
result += 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