From c75ac51eb7b02e85a82f63e69b9d4f2962dcbc3b Mon Sep 17 00:00:00 2001 From: Ruud Date: Thu, 19 Sep 2013 23:29:21 +0200 Subject: [PATCH] Try the info dict to get title. fix #2206 --- couchpotato/core/helpers/variable.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/couchpotato/core/helpers/variable.py b/couchpotato/core/helpers/variable.py index fd1a101d..2b288740 100644 --- a/couchpotato/core/helpers/variable.py +++ b/couchpotato/core/helpers/variable.py @@ -170,8 +170,11 @@ def getTitle(library_dict): if title.default: return title.title except: - log.error('Could not get title for %s', library_dict.identifier) - return None + try: + return library_dict['info']['titles'][0] + except: + log.error('Could not get title for %s', library_dict.identifier) + return None log.error('Could not get title for %s', library_dict['identifier']) return None