From a156676c577162595446d657f31423a61a526ba8 Mon Sep 17 00:00:00 2001 From: Urlo30 <91965455+UrloMythus@users.noreply.github.com> Date: Mon, 19 Aug 2024 21:34:32 +0200 Subject: [PATCH] Update streamingwatch.py --- streamingwatch.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/streamingwatch.py b/streamingwatch.py index 2feec43..60f9e19 100644 --- a/streamingwatch.py +++ b/streamingwatch.py @@ -51,18 +51,19 @@ def search(showname,season,episode,date,ismovie): return hdplayer elif ismovie == 0: - query = f'https://streamingwatch.{SW_DOMAIN}/wp-json/wp/v2/posts?search={showname}' + query = f'https://streamingwatch.{SW_DOMAIN}/wp-json/wp/v2/posts?search={showname}&per_page=100' response = requests.get(query) data_json = response.text data = json.loads(data_json) for entry in data: if f"stagione-{season}-episodio-{episode}" in entry["slug"]: content = entry["content"]["rendered"] + print(content) #"content":{ # "rendered":"