From 18e3194e27cb160480ab2bd0bbb98ba290580312 Mon Sep 17 00:00:00 2001 From: Ruud Date: Mon, 16 Sep 2013 22:37:10 +0200 Subject: [PATCH] Better category defaults --- couchpotato/core/plugins/category/main.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/couchpotato/core/plugins/category/main.py b/couchpotato/core/plugins/category/main.py index 6a60ae4e..d13a74a3 100644 --- a/couchpotato/core/plugins/category/main.py +++ b/couchpotato/core/plugins/category/main.py @@ -54,12 +54,11 @@ class CategoryPlugin(Plugin): db.add(c) c.order = kwargs.get('order', c.order if c.order else 0) - c.label = toUnicode(kwargs.get('label')) - c.path = toUnicode(kwargs.get('path')) - c.ignored = toUnicode(kwargs.get('ignored')) - c.preferred = toUnicode(kwargs.get('preferred')) - c.required = toUnicode(kwargs.get('required')) - c.destination = toUnicode(kwargs.get('destination')) + c.label = toUnicode(kwargs.get('label', '')) + c.ignored = toUnicode(kwargs.get('ignored', '')) + c.preferred = toUnicode(kwargs.get('preferred', '')) + c.required = toUnicode(kwargs.get('required', '')) + c.destination = toUnicode(kwargs.get('destination', '')) db.commit()