aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/fun/movie.py
diff options
context:
space:
mode:
authorGravatar ChrisJL <[email protected]>2023-05-06 13:36:52 +0100
committerGravatar GitHub <[email protected]>2023-05-06 13:36:52 +0100
commite2d0c268732ab6998a90028be9ecd1f8efcce7d8 (patch)
treeea0fc0176f18331756c19d110ee6edf4e5100898 /bot/exts/fun/movie.py
parentBump pre-commit from 3.3.0 to 3.3.1 (#1263) (diff)
parentbump bot-core to 9.6.0 (diff)
Merge pull request #1260 from shtlrs/pedantic-configuration
Use pydantic for configuration management
Diffstat (limited to 'bot/exts/fun/movie.py')
-rw-r--r--bot/exts/fun/movie.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/fun/movie.py b/bot/exts/fun/movie.py
index 422a83ac..73ef0a3c 100644
--- a/bot/exts/fun/movie.py
+++ b/bot/exts/fun/movie.py
@@ -22,7 +22,7 @@ THUMBNAIL_URL = "https://i.imgur.com/LtFtC8H.png"
# Define movie params, that will be used for every movie request
MOVIE_PARAMS = {
- "api_key": Tokens.tmdb,
+ "api_key": Tokens.tmdb.get_secret_value(),
"language": "en-US"
}
@@ -106,7 +106,7 @@ class Movie(Cog):
"""Return JSON of TMDB discover request."""
# Define params of request
params = {
- "api_key": Tokens.tmdb,
+ "api_key": Tokens.tmdb.get_secret_value(),
"language": "en-US",
"sort_by": "popularity.desc",
"include_adult": "false",