Added a config.json

This commit is contained in:
UrloMythus
2024-07-10 23:43:52 +02:00 Unverified
parent a86793f3ae
commit b7ee639cf2
16 changed files with 139 additions and 47 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
import requests
from tmdbv3api import TMDb, Movie, TV
from loadenv import load_env
TMDB_KEY, _, _, _,_ = load_env()
TMDB_KEY= load_env()
def get_TMDb_id_from_IMDb_id(imdb_id):
response = requests.get(f'https://api.themoviedb.org/3/find/{imdb_id}',
params={'external_source': 'imdb_id', 'api_key': f'{TMDB_KEY}'})