From b03012e4aa52cc5950c8a214d662481666bad86b Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 11 Nov 2012 22:01:19 +0100 Subject: [PATCH] Customizable check snatched. closes #920 Thanks to @clinton-hall --- couchpotato/core/plugins/renamer/__init__.py | 9 +++++++++ couchpotato/core/plugins/renamer/main.py | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/couchpotato/core/plugins/renamer/__init__.py b/couchpotato/core/plugins/renamer/__init__.py index c3afbc8b..e2c65edb 100644 --- a/couchpotato/core/plugins/renamer/__init__.py +++ b/couchpotato/core/plugins/renamer/__init__.py @@ -82,6 +82,15 @@ config = [{ 'unit': 'min(s)', 'description': 'Detect movie status every X minutes. Will start the renamer if movie is completed or handle failed download if these options are enabled', }, + { + 'advanced': True, + 'name': 'force_every', + 'label': 'Force every', + 'default': 2, + 'type': 'int', + 'unit': 'hour(s)', + 'description': 'Forces the renamer to scan every X hours', + }, { 'advanced': True, 'name': 'next_on_failed', diff --git a/couchpotato/core/plugins/renamer/main.py b/couchpotato/core/plugins/renamer/main.py index a10725b9..acb98ae5 100644 --- a/couchpotato/core/plugins/renamer/main.py +++ b/couchpotato/core/plugins/renamer/main.py @@ -35,7 +35,7 @@ class Renamer(Plugin): addEvent('app.load', self.scan) fireEvent('schedule.interval', 'renamer.check_snatched', self.checkSnatched, minutes = self.conf('run_every')) - fireEvent('schedule.interval', 'renamer.check_snatched_forced', self.scan, hours = 2) + fireEvent('schedule.interval', 'renamer.check_snatched_forced', self.scan, hours = self.conf('force_every')) def scanView(self):