]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
epg: fix the EPG limit (days) - inverted condition
authorJaroslav Kysela <perex@perex.cz>
Sun, 22 Apr 2018 19:27:50 +0000 (21:27 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sun, 22 Apr 2018 19:27:50 +0000 (21:27 +0200)
src/epg.c

index 5cad23461496a1a9da0dc5c75a49c271b54ef497..f7ad33f1ee4014f5cffddc169ca2f388d35193b4 100644 (file)
--- 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;
 }