[videos] Quick fix

This commit is contained in:
2025-06-13 11:23:37 -04:00
parent 7a75b31b56
commit 981f4f9c9a

View File

@ -5,13 +5,12 @@ from themoviedb import TMDb
from tmdbv3api import TV, TMDb as TMDb_direct
from videos.metadata import VideoMetadata, VideoType
key = getattr(settings, "TMDB_API_KEY", "33de8d24785931068ae356510dcfbac8")
key = "33de8d24785931068ae356510dcfbac8"
TMDB_KEY = getattr(settings, "TMDB_API_KEY", "")
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"
@ -28,7 +27,6 @@ def lookup_video_from_tmdb(
imdb_id = name_or_id[2:]
video_metadata = VideoMetadata(imdb_id=imdb_id)
imdb_result: dict = {}
tmdb_result = tmdb.find().by_imdb("tt" + imdb_id)