From f635c5c538a184198f29fbd84b7bf11436ea9e41 Mon Sep 17 00:00:00 2001 From: inpos Date: Sun, 26 Nov 2017 18:11:06 +0300 Subject: [PATCH] debug --- resources/scrapers/tmdb.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/resources/scrapers/tmdb.py b/resources/scrapers/tmdb.py index e91c581..b5def46 100644 --- a/resources/scrapers/tmdb.py +++ b/resources/scrapers/tmdb.py @@ -144,12 +144,13 @@ class Movies(Core): return self.movies["total_results"] def iter_results(self): - if 'results' in self.movies.keys(): - res = self.movies["results"] - else: - log('self.movies: %s' % (repr(self.movies))) - res = [] - for i in res: +# if 'results' in self.movies.keys(): +# res = self.movies["results"] +# else: +# log('self.movies: %s' % (repr(self.movies))) +# res = [] + log('self.movies: %s' % (repr(self.movies))) + for i in self.movies["results"]: yield i def get_ordered_matches(self):