pull/16/merge
inpos 2017-11-26 18:11:06 +03:00
parent 8e72effba9
commit f635c5c538
1 changed files with 7 additions and 6 deletions

View File

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