From cf8f4e9845d6d77bc2c5a187224005934f7fde18 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Mon, 17 Feb 2020 23:37:55 +0100 Subject: [PATCH] - controlapi: modify channelname in tvg-name to satisfy parser This is just a workaround. The parser should be fixed. Signed-off-by: Thilo Graf #include added, because of broken build --- src/nhttpd/tuxboxapi/controlapi.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/nhttpd/tuxboxapi/controlapi.cpp b/src/nhttpd/tuxboxapi/controlapi.cpp index 35c6b467a..01a2c0f44 100644 --- a/src/nhttpd/tuxboxapi/controlapi.cpp +++ b/src/nhttpd/tuxboxapi/controlapi.cpp @@ -32,6 +32,7 @@ #include #include #include +#include #include #include //for relodplugins #include @@ -3353,9 +3354,10 @@ void CControlAPI::xmltvm3uCGI(CyhookHandler *hh) { CZapitChannel *channel = chanlist[j]; std::string bouq_name = g_bouquetManager->Bouquets[i]->bName; + std::string chan_name = channel->getName(); 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 + "\""; - result += " tvg-name=\"" + channel->getName() + "\""; + result += " tvg-name=\"" + str_replace(",", ".", chan_name) + "\""; if (!NeutrinoAPI->getLogoFile(channel->getChannelID()).empty()) result += " tvg-logo=\"" + host + NeutrinoAPI->getLogoFile(channel->getChannelID()) + "\""; else