From c3cde35d328671631e0c8f6c75838c2e91aa879d Mon Sep 17 00:00:00 2001 From: Ray Lyon Date: Sun, 20 Feb 2022 00:02:39 -0500 Subject: [PATCH] user input for movie title --- streaming-check/movie_check.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/streaming-check/movie_check.py b/streaming-check/movie_check.py index a076cce..240192c 100644 --- a/streaming-check/movie_check.py +++ b/streaming-check/movie_check.py @@ -21,7 +21,7 @@ sa_headers = { 'x-rapidapi-key': sa_api_token } -movie = "eternals" +movie = input("Enter a movie: ") movie_safe = urllib.parse.quote_plus(movie) tmdb_search = requests.get(f"{tmdb_url}/search/movie?language=en-US&query={movie_safe}&page=1&include_adult=false", headers=tmdb_headers).json() @@ -61,7 +61,7 @@ def services_speller(service): print(movie_tile + f" ({movie_release.year})") print(f"Rating: {movie_rating}") if not services: - print("Movie not available for streaming :(") + print("Streaming not available :(") for s in services: countries = sa_response["streamingInfo"][s] for c in countries: