From c365f235cc997bd3df5f94939aa0fce8e7bea4f8 Mon Sep 17 00:00:00 2001 From: "ton.van.der.poel" Date: Wed, 23 Feb 2011 21:42:57 +0100 Subject: [PATCH] DVR - Bugfix - Duplicate recordings In some situations (I suspend my main pvr machine, and use a script to wake it up before recordings, this means I stop and start tvheadend multiple times a day), tvheadend starts parsing EPG-data agains AutoRec rules before previously scheduled recordings are loaded from disk. Since the check for duplicate recordings is not present in the code that loads previously scheduled recordings from disk, it would mean that when an autorec-rule was triggered, this would result in duplicate scheduled recordings. By first restoring previously scheduled recordings from disk and then loading the AutoRec rules, this situation can not happen anymore... --- src/dvr/dvr_db.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dvr/dvr_db.c b/src/dvr/dvr_db.c index 365d8f14..aa59112f 100644 --- a/src/dvr/dvr_db.c +++ b/src/dvr/dvr_db.c @@ -834,9 +834,9 @@ dvr_init(void) } } - dvr_autorec_init(); - dvr_db_load(); + + dvr_autorec_init(); } /**