Skip to content

Commit 64b0efe

Browse files
committed
fix tmdb leak warning
1 parent 12439b1 commit 64b0efe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

backend/src/module/conf/tmdb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
# Default TMDB API key, replace with your own key if needed
1010
# Note: Using a public key is not recommended for production use.
1111
# It is better to set your own key in the configuration.
12-
TMDB_API_KEY = "291237f90b24267380d6176c98f7619f"
12+
t = "291237f90b24267380d6176c98f7619f"
1313

1414
LANGUAGE = {"zh": "zh-CN", "jp": "ja-JP", "en": "en-US"}
1515

1616
def get_api_key():
1717
"""Get the TMDB API key from settings."""
18-
return settings.rss_parser.tmdb_api_key or TMDB_API_KEY
18+
return settings.rss_parser.tmdb_api_key or t
1919

2020

2121
def search_url(keyword: str) -> str:

0 commit comments

Comments
 (0)