change api key

pull/16/merge
inpos 2017-11-26 18:31:28 +03:00
parent f635c5c538
commit b277cd2169
2 changed files with 2 additions and 10 deletions

View File

@ -18,9 +18,7 @@ except:
import fuzzywuzzy.fuzz import fuzzywuzzy.fuzz
import requests import requests
###
from functions import log
###
config = {} config = {}
@ -144,12 +142,6 @@ 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():
# 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"]: for i in self.movies["results"]:
yield i yield i

View File

@ -19,7 +19,7 @@ class TmDb:
""" """
def __init__(self, language='en'): def __init__(self, language='en'):
tmdb.configure("f7f51775877e0bb6703520952b3c7840", language=language) tmdb.configure("33dd11cb87f2b5fd9ecaff4a81d47edb", language=language)
dbname='tmdb.%s.db' % language dbname='tmdb.%s.db' % language
self.cache = Cache(dbname, 1.0) self.cache = Cache(dbname, 1.0)