From f41fc794c131cb84b632aced1a9821845142af83 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 19 Jan 2013 01:30:56 +0100 Subject: [PATCH] Don't search full disk when no manage folders are filled. fix #1304 --- couchpotato/core/plugins/manage/main.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/couchpotato/core/plugins/manage/main.py b/couchpotato/core/plugins/manage/main.py index ead5b6ea..9ef2a9c2 100644 --- a/couchpotato/core/plugins/manage/main.py +++ b/couchpotato/core/plugins/manage/main.py @@ -198,9 +198,12 @@ class Manage(Plugin): def directories(self): try: - return splitString(self.conf('library', default = ''), '::') + if self.conf('library', '').strip(): + return splitString(self.conf('library', default = ''), '::') except: - return [] + pass + + return [] def scanFilesToLibrary(self, folder = None, files = None):