diff --git a/resources/scrapers/tmdb.py b/resources/scrapers/tmdb.py index d6b578e..0b7344e 100644 --- a/resources/scrapers/tmdb.py +++ b/resources/scrapers/tmdb.py @@ -144,9 +144,11 @@ class Movies(Core): return self.movies["total_results"] def iter_results(self): - log('movies.keys: %s' % (repr(self.movies.keys()))) - for i in self.movies["results"]: - yield i + if 'results' in self.movies.keys(): + for i in self.movies["results"]: + yield i + else: + return [] def get_ordered_matches(self): """