From 7b6641d7096f39f4653733fac757a377ef29070c Mon Sep 17 00:00:00 2001 From: Ruud Date: Wed, 8 Oct 2014 23:00:11 +0200 Subject: [PATCH] Never restatus "down" when adding release --- couchpotato/core/plugins/manage.py | 4 ++-- couchpotato/core/plugins/release/main.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/couchpotato/core/plugins/manage.py b/couchpotato/core/plugins/manage.py index 3c22ee3d..b0e1239c 100755 --- a/couchpotato/core/plugins/manage.py +++ b/couchpotato/core/plugins/manage.py @@ -218,8 +218,8 @@ class Manage(Plugin): if group['media'] and group['identifier']: added_identifiers.append(group['identifier']) - # Add it to release and update the info (only allow media restatus to done, not to active) - fireEvent('release.add', group = group, update_info = False, allowed_restatus = ['done']) + # Add it to release and update the info + fireEvent('release.add', group = group, update_info = False) fireEvent('movie.update', identifier = group['identifier'], on_complete = self.createAfterUpdate(folder, group['identifier'])) return addToLibrary diff --git a/couchpotato/core/plugins/release/main.py b/couchpotato/core/plugins/release/main.py index a937eee2..452aa751 100644 --- a/couchpotato/core/plugins/release/main.py +++ b/couchpotato/core/plugins/release/main.py @@ -129,7 +129,7 @@ class Release(Plugin): if 'recent' in media.get('tags', []): fireEvent('media.untag', media.get('_id'), 'recent', single = True) - def add(self, group, update_info = True, update_id = None, allowed_restatus = None): + def add(self, group, update_info = True, update_id = None): try: db = get_db() @@ -187,7 +187,7 @@ class Release(Plugin): release['files'] = dict((k, [toUnicode(x) for x in v]) for k, v in group['files'].items() if v) db.update(release) - fireEvent('media.restatus', media['_id'], allowed_restatus = allowed_restatus, single = True) + fireEvent('media.restatus', media['_id'], allowed_restatus = ['done'], single = True) return True except: