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:
vanhofen
2020-02-16 20:13:34 +01:00
parent cd56814af6
commit df38e40a04
2 changed files with 73 additions and 78 deletions

View File

@@ -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;
}