From: Jaroslav Kysela Date: Sun, 22 Apr 2018 19:27:50 +0000 (+0200) Subject: epg: fix the EPG limit (days) - inverted condition X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=595fd174fa6512efc220e7dcd82b0f9b129f14b0;p=thirdparty%2Ftvheadend.git epg: fix the EPG limit (days) - inverted condition --- diff --git a/src/epg.c b/src/epg.c index 5cad23461..f7ad33f1e 100644 --- a/src/epg.c +++ b/src/epg.c @@ -470,7 +470,7 @@ int epg_episode_number_cmpfull ( const epg_episode_num_t *a, const epg_episode_n int epg_channel_ignore_broadcast(channel_t *ch, time_t start) { - if (ch->ch_epg_limit && start < gclk() + ch->ch_epg_limit * 3600 * 24) + if (ch->ch_epg_limit && start >= gclk() + ch->ch_epg_limit * 3600 * 24) return 1; return 0; }