]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
channels: fix the EPG auto functionality for mapped channels
authorJaroslav Kysela <perex@perex.cz>
Thu, 15 Oct 2015 14:23:52 +0000 (16:23 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 15 Oct 2015 14:23:52 +0000 (16:23 +0200)
src/channels.c

index f2b1ea812a5a9b1960e0b3997f377b14908692d0..9c49cd4c687258b982f67256d5abb934bcdb3692 100644 (file)
@@ -873,6 +873,9 @@ channel_save ( channel_t *ch )
   idnode_save(&ch->ch_id, c);
   hts_settings_save(c, "channel/config/%s", idnode_uuid_as_sstr(&ch->ch_id));
   htsmsg_destroy(c);
+  /* update the EPG channel <-> channel mapping here */
+  if (ch->ch_enabled && ch->ch_epgauto)
+    epggrab_channel_add(ch);
 }
 
 /**