change api key
parent
f635c5c538
commit
b277cd2169
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue