tmdb. 'results' key doesn't exist
parent
b8d9df3807
commit
e02adcf845
|
@ -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):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue