From 981f4f9c9a0cce3084e2da81919cf2937a2b698c Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Fri, 13 Jun 2025 11:23:37 -0400 Subject: [PATCH] [videos] Quick fix --- vrobbler/apps/videos/sources/tmdb.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/vrobbler/apps/videos/sources/tmdb.py b/vrobbler/apps/videos/sources/tmdb.py index 8bbb389..c386591 100644 --- a/vrobbler/apps/videos/sources/tmdb.py +++ b/vrobbler/apps/videos/sources/tmdb.py @@ -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)