]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
autorec: fix the check when serieslink has different titles, fixes #4087
authorJaroslav Kysela <perex@perex.cz>
Wed, 30 Nov 2016 13:58:48 +0000 (14:58 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 30 Nov 2016 13:58:57 +0000 (14:58 +0100)
src/dvr/dvr_autorec.c

index 600b3247d30e7a19fe9a6b6cc8bb908ef667b449..d22619913d5d1fa5122bf029563475b0e2135ec0 100644 (file)
@@ -167,13 +167,17 @@ autorec_cmp(dvr_autorec_entry_t *dae, epg_broadcast_t *e)
     if(dae->dae_brand)
       if (!e->episode->brand || dae->dae_brand != e->episode->brand) return 0;
   }
+
   if(dae->dae_btype != DVR_AUTOREC_BTYPE_ALL) {
     if (dae->dae_btype == DVR_AUTOREC_BTYPE_NEW && e->is_repeat)
       return 0;
     if (dae->dae_btype == DVR_AUTOREC_BTYPE_REPEAT && e->is_repeat == 0)
       return 0;
   }
-  if(dae->dae_title != NULL && dae->dae_title[0] != '\0') {
+
+  /* Do not check title if the event is from the serieslink group */
+  if(dae->dae_serieslink == NULL &&
+     dae->dae_title != NULL && dae->dae_title[0] != '\0') {
     lang_str_ele_t *ls;
     if (!dae->dae_fulltext) {
       if(!e->episode->title) return 0;