BinaryONe
commited on
Commit
·
800d7f0
1
Parent(s):
a9bff04
Callback Update
Browse files
FileStream/APIs/TMDB/Endpoint.py
CHANGED
|
@@ -52,7 +52,7 @@ def search_tmdb_tv(name):
|
|
| 52 |
return None
|
| 53 |
|
| 54 |
|
| 55 |
-
def search_tmdb_any(title: str, year:
|
| 56 |
"""
|
| 57 |
Search for a movie or TV show on TMDb based on title and release year.
|
| 58 |
:param title: The name of the movie or TV show.
|
|
@@ -61,6 +61,7 @@ def search_tmdb_any(title: str, year: int):
|
|
| 61 |
"""
|
| 62 |
try:
|
| 63 |
# Validate inputs
|
|
|
|
| 64 |
if not isinstance(title, str) or not isinstance(year, int):
|
| 65 |
logging.warning("Invalid input: Title must be a string, and Year must be an integer.")
|
| 66 |
return None
|
|
|
|
| 52 |
return None
|
| 53 |
|
| 54 |
|
| 55 |
+
def search_tmdb_any(title: str, year: str):
|
| 56 |
"""
|
| 57 |
Search for a movie or TV show on TMDb based on title and release year.
|
| 58 |
:param title: The name of the movie or TV show.
|
|
|
|
| 61 |
"""
|
| 62 |
try:
|
| 63 |
# Validate inputs
|
| 64 |
+
year = int(year)
|
| 65 |
if not isinstance(title, str) or not isinstance(year, int):
|
| 66 |
logging.warning("Invalid input: Title must be a string, and Year must be an integer.")
|
| 67 |
return None
|