From 7aef4c3655354f8e049695526d7abe4fe4d61087 Mon Sep 17 00:00:00 2001 From: Ghost <62809003+Ghost6446@users.noreply.github.com> Date: Mon, 29 Apr 2024 22:30:14 +0200 Subject: [PATCH] Fix url with space --- Src/Api/site.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Api/site.py b/Src/Api/site.py index b02793d..f75435e 100644 --- a/Src/Api/site.py +++ b/Src/Api/site.py @@ -218,7 +218,7 @@ def search(title_search: str, domain: str) -> int: """ # Send request to search for titles - req = requests.get(f"https://streamingcommunity.{domain}/api/search?q={title_search}", headers={'user-agent': get_headers()}) + req = requests.get(f"https://streamingcommunity.{domain}/api/search?q={title_search.replace(" ", "+")}", headers={'user-agent': get_headers()}) # Add found titles to media search manager for dict_title in req.json()['data']: