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...
This commit is contained in:
ton.van.der.poel 2011-02-23 21:42:57 +01:00
parent eee6e1c45b
commit c365f235cc

View file

@ -834,9 +834,9 @@ dvr_init(void)
}
}
dvr_autorec_init();
dvr_db_load();
dvr_autorec_init();
}
/**