[videos] Quick fix
This commit is contained in:
@ -5,13 +5,12 @@ from themoviedb import TMDb
|
|||||||
from tmdbv3api import TV, TMDb as TMDb_direct
|
from tmdbv3api import TV, TMDb as TMDb_direct
|
||||||
from videos.metadata import VideoMetadata, VideoType
|
from videos.metadata import VideoMetadata, VideoType
|
||||||
|
|
||||||
key = getattr(settings, "TMDB_API_KEY", "33de8d24785931068ae356510dcfbac8")
|
TMDB_KEY = getattr(settings, "TMDB_API_KEY", "")
|
||||||
key = "33de8d24785931068ae356510dcfbac8"
|
|
||||||
|
|
||||||
tmdb_direct = TMDb_direct()
|
tmdb_direct = TMDb_direct()
|
||||||
tmdb_direct.api_key = "33de8d24785931068ae356510dcfbac8"
|
tmdb_direct.api_key = TMDB_KEY
|
||||||
|
|
||||||
tmdb = TMDb(key=key, language="en-US", region="US")
|
tmdb = TMDb(key=TMDB_KEY, language="en-US", region="US")
|
||||||
|
|
||||||
TMDB_STILL_URL = "https://image.tmdb.org/t/p/original"
|
TMDB_STILL_URL = "https://image.tmdb.org/t/p/original"
|
||||||
|
|
||||||
@ -28,7 +27,6 @@ def lookup_video_from_tmdb(
|
|||||||
imdb_id = name_or_id[2:]
|
imdb_id = name_or_id[2:]
|
||||||
|
|
||||||
video_metadata = VideoMetadata(imdb_id=imdb_id)
|
video_metadata = VideoMetadata(imdb_id=imdb_id)
|
||||||
imdb_result: dict = {}
|
|
||||||
|
|
||||||
tmdb_result = tmdb.find().by_imdb("tt" + imdb_id)
|
tmdb_result = tmdb.find().by_imdb("tt" + imdb_id)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user