From b277cd21698e5e5c48adc87eacde305227c29646 Mon Sep 17 00:00:00 2001 From: inpos Date: Sun, 26 Nov 2017 18:31:28 +0300 Subject: [PATCH] change api key --- resources/scrapers/tmdb.py | 10 +--------- resources/scrapers/tmdbs.py | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/resources/scrapers/tmdb.py b/resources/scrapers/tmdb.py index b5def46..7fcf164 100644 --- a/resources/scrapers/tmdb.py +++ b/resources/scrapers/tmdb.py @@ -18,9 +18,7 @@ except: import fuzzywuzzy.fuzz import requests -### -from functions import log -### + config = {} @@ -144,12 +142,6 @@ 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 = [] - log('self.movies: %s' % (repr(self.movies))) for i in self.movies["results"]: yield i diff --git a/resources/scrapers/tmdbs.py b/resources/scrapers/tmdbs.py index 38428db..cea63f8 100644 --- a/resources/scrapers/tmdbs.py +++ b/resources/scrapers/tmdbs.py @@ -19,7 +19,7 @@ class TmDb: """ def __init__(self, language='en'): - tmdb.configure("f7f51775877e0bb6703520952b3c7840", language=language) + tmdb.configure("33dd11cb87f2b5fd9ecaff4a81d47edb", language=language) dbname='tmdb.%s.db' % language self.cache = Cache(dbname, 1.0)