mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 01:41:12 +02:00
just indentation alignments; no other code changes
Origin commit data
------------------
Branch: ni/coolstream
Commit: 87ff6fcf0f
Author: vanhofen <vanhofen@gmx.de>
Date: 2020-02-16 (Sun, 16 Feb 2020)
Origin message was:
------------------
- just indentation alignments; no other code changes
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -542,31 +542,29 @@ t_channel_id getepgid(std::string epg_name)
|
||||
|
||||
CBouquetManager::ChannelIterator cit = g_bouquetManager->tvChannelsBegin();
|
||||
|
||||
// FIXME: Maybe there's a nicer solution
|
||||
for (int m = CZapitClient::MODE_TV; m < CZapitClient::MODE_ALL; m++)
|
||||
{
|
||||
if (m == CZapitClient::MODE_RADIO)
|
||||
cit = g_bouquetManager->radioChannelsBegin();
|
||||
|
||||
for (; !(cit.EndOfChannels()); cit++)
|
||||
{
|
||||
std::string tvg_id = (*cit)->getScriptName();
|
||||
|
||||
if (tvg_id.empty())
|
||||
continue;
|
||||
|
||||
std::size_t found = tvg_id.find("#"+epg_name);
|
||||
if (found != std::string::npos)
|
||||
for (; !(cit.EndOfChannels()); cit++)
|
||||
{
|
||||
tvg_id = tvg_id.substr(tvg_id.find_first_of("="));
|
||||
sscanf(tvg_id.c_str(), "=%" SCNx64, &epgid);
|
||||
return epgid;
|
||||
}
|
||||
else
|
||||
continue;
|
||||
}
|
||||
std::string tvg_id = (*cit)->getScriptName();
|
||||
|
||||
} // for m-loop
|
||||
if (tvg_id.empty())
|
||||
continue;
|
||||
|
||||
std::size_t found = tvg_id.find("#"+epg_name);
|
||||
if (found != std::string::npos)
|
||||
{
|
||||
tvg_id = tvg_id.substr(tvg_id.find_first_of("="));
|
||||
sscanf(tvg_id.c_str(), "=%" SCNx64, &epgid);
|
||||
return epgid;
|
||||
}
|
||||
else
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user