blob: 0ad1121136e079dd445754bb47545ab54b25586a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/*
* blacklist.c: Blacklist list item
*
* See the README file for copyright information and how to reach the author.
*
*/
#include "blacklist.h"
/* Global instance */
cEpgfixerList<cBlacklist, cChannel> EpgfixerBlacklists;
bool cBlacklist::Apply(cChannel *Channel)
{
if (enabled && IsActive(Channel->GetChannelID()))
return true;
return false;
}
void cBlacklist::SetFromString(char *s, bool Enabled)
{
Free();
cListItem::SetFromString(s, Enabled);
if (enabled) {
char *p = (s[0] == '!') ? s + 1 : s;
numchannels = LoadChannelsFromString(p);
}
}
|