mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-07 03:55:24 +00:00
Fix url with space
This commit is contained in:
parent
02edd4d5cd
commit
7aef4c3655
@ -218,7 +218,7 @@ def search(title_search: str, domain: str) -> int:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
# Send request to search for titles
|
# 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
|
# Add found titles to media search manager
|
||||||
for dict_title in req.json()['data']:
|
for dict_title in req.json()['data']:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user