/* * blacklist.c: Blacklist list item * * See the README file for copyright information and how to reach the author. * */ #include "blacklist.h" /* Global instance */ cEpgfixerList 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); } }