tmdb. 'results' key doesn't exist

pull/16/merge
inpos 2017-11-26 17:28:00 +03:00
parent b8d9df3807
commit e02adcf845
1 changed files with 5 additions and 3 deletions

View File

@ -144,9 +144,11 @@ class Movies(Core):
return self.movies["total_results"] return self.movies["total_results"]
def iter_results(self): def iter_results(self):
log('movies.keys: %s' % (repr(self.movies.keys()))) if 'results' in self.movies.keys():
for i in self.movies["results"]: for i in self.movies["results"]:
yield i yield i
else:
return []
def get_ordered_matches(self): def get_ordered_matches(self):
""" """