Switched to FastApi
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@ import config
|
||||
env_vars = load_env()
|
||||
|
||||
TMDB_KEY = env_vars.get('TMDB_KEY')
|
||||
def get_TMDb_id_from_IMDb_id(imdb_id):
|
||||
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}'})
|
||||
tmbda = response.json()
|
||||
|
||||
Reference in New Issue
Block a user