Customizable check snatched. closes #920

Thanks to @clinton-hall
This commit is contained in:
Ruud committed 2012-11-11 22:01:19 +01:00
1 parent 5a1f05df8e
commit b03012e4aa
2 files changed
+10 -1

No files matched your search

@@ -82,6 +82,15 @@ config = [{
'unit': 'min(s)', 'unit': 'min(s)',
'description': 'Detect movie status every X minutes. Will start the renamer if movie is <strong>completed</strong> or handle <strong>failed</strong> download if these options are enabled', 'description': 'Detect movie status every X minutes. Will start the renamer if movie is <strong>completed</strong> or handle <strong>failed</strong> 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, 'advanced': True,
'name': 'next_on_failed', 'name': 'next_on_failed',
+1 -1
View File
@@ -35,7 +35,7 @@ class Renamer(Plugin):
addEvent('app.load', self.scan) addEvent('app.load', self.scan)
fireEvent('schedule.interval', 'renamer.check_snatched', self.checkSnatched, minutes = self.conf('run_every')) 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): def scanView(self):