bouquets: allow multiple epgmap.xml

Origin commit data
------------------
Branch: ni/coolstream
Commit: ef45ef8c9c
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-09-11 (Sat, 11 Sep 2021)

Origin message was:
------------------
- bouquets: allow multiple epgmap.xml

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2021-09-11 18:07:02 +02:00
parent 9f32a3dbfc
commit 1d6336b240
2 changed files with 34 additions and 2 deletions

View File

@@ -302,6 +302,10 @@ bool CWebChannelsSetup::changeNotify(const neutrino_locale_t OptionName, void */
int filefilter(const struct dirent *entry)
{
std::string f = entry->d_name;
if (f.find("epgmap.xml") != std::string::npos)
return 0;
int len = strlen(entry->d_name);
if (len > 3 && (
(entry->d_name[len - 3] == 'x' && entry->d_name[len - 2] == 'm' && entry->d_name[len - 1] == 'l')