Browse Source

[videos] Quick fix

Colin Powell 1 week ago
parent
commit
981f4f9c9a
1 changed files with 3 additions and 5 deletions
  1. 3 5
      vrobbler/apps/videos/sources/tmdb.py

+ 3 - 5
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)