From 006163bd2b84f1808e7c2eef10e8b6845514be34 Mon Sep 17 00:00:00 2001 From: Ruud Date: Fri, 14 Sep 2012 13:15:18 +0200 Subject: [PATCH] Don't show error when thetvdb failes --- couchpotato/core/plugins/movie/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/couchpotato/core/plugins/movie/main.py b/couchpotato/core/plugins/movie/main.py index d3c2ccc2..a1016066 100644 --- a/couchpotato/core/plugins/movie/main.py +++ b/couchpotato/core/plugins/movie/main.py @@ -288,8 +288,8 @@ class MoviePlugin(Plugin): else: try: url = 'http://thetvdb.com/api/GetSeriesByRemoteID.php?imdbid=%s' % params.get('identifier') - tvdb = self.getCache('thetvdb.%s' % params.get('identifier'), url = url) - if 'series' in tvdb.lower(): + tvdb = self.getCache('thetvdb.%s' % params.get('identifier'), url = url, show_error = False) + if tvdb and 'series' in tvdb.lower(): msg = 'Can\'t add movie, seems to be a TV show.' log.error(msg) fireEvent('notify.frontend', type = 'movie.is_tvshow', message = msg)