From 3087944461bd77ada62ae0e30213dbf4f83fcb4e Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 2 Sep 2012 18:35:49 +0200 Subject: [PATCH] Don't search imdb when no name is found --- couchpotato/core/providers/movie/imdbapi/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/providers/movie/imdbapi/main.py b/couchpotato/core/providers/movie/imdbapi/main.py index c81a9aba..9238f45a 100644 --- a/couchpotato/core/providers/movie/imdbapi/main.py +++ b/couchpotato/core/providers/movie/imdbapi/main.py @@ -27,7 +27,7 @@ class IMDBAPI(MovieProvider): name_year = fireEvent('scanner.name_year', q, single = True) - if not q or not name_year.get('name'): + if not q or not name_year or (name_year and not name_year.get('name')): return [] cache_key = 'imdbapi.cache.%s' % q