From 656b130e8df959dfa1d9f01e5c5c97864cae2ee7 Mon Sep 17 00:00:00 2001 From: Ruud Date: Wed, 12 Aug 2015 16:06:31 +0200 Subject: [PATCH] Skip if no media_id is set for release fix #5087 --- couchpotato/core/plugins/renamer.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/couchpotato/core/plugins/renamer.py b/couchpotato/core/plugins/renamer.py index 2874983..fd710d5 100755 --- a/couchpotato/core/plugins/renamer.py +++ b/couchpotato/core/plugins/renamer.py @@ -966,6 +966,7 @@ Remove it if you want it to be renamed (again, or at least let it try again) try: for rel in rels: + if not rel.get('media_id'): continue movie_dict = db.get('id', rel.get('media_id')) download_info = rel.get('download_info') @@ -1348,12 +1349,12 @@ config = [{ 'options': rename_options }, { - 'advanced': True, + 'advanced': True, 'name': 'replace_doubles', 'type': 'bool', 'label': 'Clean Name', 'description': ('Attempt to clean up double separaters due to missing data for fields.','Sometimes this eliminates wanted white space (see #2782).'), - 'default': True + 'default': True }, { 'name': 'unrar',