]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
DVR: remove unused dvr_sl_ variables and dvr_dup_detect_episode
authorJaroslav Kysela <perex@perex.cz>
Thu, 21 May 2015 16:06:56 +0000 (18:06 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 21 May 2015 16:06:56 +0000 (18:06 +0200)
src/dvr/dvr.h
src/dvr/dvr_autorec.c
src/dvr/dvr_config.c

index 8a4c000edbbb3609bddc3287171764c2bd3bb66e..9a4f0d0b39291a5b3af2fe8cefceecf19ee0758f 100644 (file)
@@ -67,17 +67,6 @@ typedef struct dvr_config {
   int dvr_subtitle_in_title;
   int dvr_windows_compatible_filenames;
 
-  /* Series link support */
-  int dvr_sl_brand_lock;
-  int dvr_sl_season_lock;
-  int dvr_sl_channel_lock;
-  int dvr_sl_time_lock;
-  int dvr_sl_more_recent;
-  int dvr_sl_quality_lock;
-
-  /* Duplicate detect */
-  int dvr_dup_detect_episode;
-
   struct dvr_entry_list dvr_entries;
   struct dvr_autorec_entry_list dvr_autorec_entries;
   struct dvr_timerec_entry_list dvr_timerec_entries;
index 9f5570f06dce58fd80b89de37728648ed65e15fa..6371f35a311c12f7b1089f9387348da565bacbc9 100644 (file)
@@ -121,14 +121,13 @@ autorec_cmp(dvr_autorec_entry_t *dae, epg_broadcast_t *e)
   // Note: ignore channel test if we allow quality unlocking 
   if ((cfg = dae->dae_config) == NULL)
     return 0;
-  if (cfg->dvr_sl_quality_lock)
-    if(dae->dae_channel != NULL) {
-      if (dae->dae_channel != e->channel &&
-          dae->dae_channel->ch_enabled)
-        return 0;
-      if (!dae->dae_channel->ch_enabled)
-        return 0;
-    }
+  if(dae->dae_channel != NULL) {
+    if (dae->dae_channel != e->channel &&
+        dae->dae_channel->ch_enabled)
+      return 0;
+    if (!dae->dae_channel->ch_enabled)
+      return 0;
+  }
 
   if(dae->dae_channel_tag != NULL) {
     LIST_FOREACH(ctm, &dae->dae_channel_tag->ct_ctms, ctm_tag_link)
index 36fff4227d3f0a997b142fda54fa9a3ea7d355a7..565182519bacb579b93d205883331679627d1bdc 100644 (file)
@@ -180,20 +180,9 @@ dvr_config_create(const char *name, const char *uuid, htsmsg_t *conf)
   cfg->dvr_update_window = 24 * 3600;
   cfg->dvr_pathname = strdup("$t$n.$x");
 
-  /* series link support */
-  cfg->dvr_sl_brand_lock   = 1; // use brand linking
-  cfg->dvr_sl_season_lock  = 0; // ignore season (except if no brand)
-  cfg->dvr_sl_channel_lock = 1; // channel locked
-  cfg->dvr_sl_time_lock    = 0; // time slot (approx) locked
-  cfg->dvr_sl_more_recent  = 1; // Only record more reason episodes
-  cfg->dvr_sl_quality_lock = 1; // Don't attempt to ajust quality
-
   /* Muxer config */
   cfg->dvr_muxcnf.m_cache  = MC_CACHE_DONTKEEP;
 
-  /* dup detect */
-  cfg->dvr_dup_detect_episode = 1; // detect dup episodes
-
   /* Default recording file and directory permissions */
 
   cfg->dvr_muxcnf.m_file_permissions      = 0664;