From 79a9c6dd44820c4404d482edd17394999e0344ab Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Sun, 16 Feb 2020 00:01:49 +0100 Subject: [PATCH] - xmlutil: badass hack to read radio epg from xmltv.xml Signed-off-by: Thilo Graf --- src/eitd/xmlutil.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/eitd/xmlutil.cpp b/src/eitd/xmlutil.cpp index d26f6afe1..598f33e05 100644 --- a/src/eitd/xmlutil.cpp +++ b/src/eitd/xmlutil.cpp @@ -542,6 +542,12 @@ t_channel_id getepgid(std::string epg_name) CBouquetManager::ChannelIterator cit = g_bouquetManager->tvChannelsBegin(); + // FIXME: Maybe there's a nicer solution + for (int m = 0; m < 2; m++) + { + if (m == 1) + cit = g_bouquetManager->radioChannelsBegin(); + for (; !(cit.EndOfChannels()); cit++) { std::string tvg_id = (*cit)->getScriptName(); @@ -559,6 +565,9 @@ t_channel_id getepgid(std::string epg_name) else continue; } + + } // for m-loop + return 0; }