Browse Source

Make sure to use proper category id

pull/2987/head
Ruud 11 years ago
parent
commit
36125f1067
  1. 2
      couchpotato/core/media/movie/_base/main.py
  2. 2
      couchpotato/core/plugins/renamer.py

2
couchpotato/core/media/movie/_base/main.py

@ -106,7 +106,7 @@ class MovieBase(MovieTypeBase):
'identifier': params.get('identifier'),
'status': status if status else 'active',
'profile_id': params.get('profile_id', default_profile.get('_id')),
'category_id': cat_id if cat_id is not None and len(cat_id) > 0 else None,
'category_id': cat_id if cat_id is not None and len(cat_id) > 0 and cat_id != '-1' else None,
}
# Update movie info

2
couchpotato/core/plugins/renamer.py

@ -256,7 +256,7 @@ class Renamer(Plugin):
destination = to_folder
category_label = ''
if media.get('category_id'):
if media.get('category_id') and media.get('category_id') != '-1':
try:
category = db.get('id', media['category_id'])
category_label = category['label']

Loading…
Cancel
Save