mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 01:41:12 +02:00
xmlutil: badass hack to read radio epg from xmltv.xml
Origin commit data
------------------
Branch: ni/coolstream
Commit: b15998d605
Author: vanhofen <vanhofen@gmx.de>
Date: 2020-02-16 (Sun, 16 Feb 2020)
Origin message was:
------------------
- xmlutil: badass hack to read radio epg from xmltv.xml
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user