From c2e00e752f3871a0e01f089c09ab58ede88a8859 Mon Sep 17 00:00:00 2001 From: yoshiko2 Date: Thu, 4 May 2023 04:47:50 +0800 Subject: [PATCH] Fix: "Perhaps http" in output message --- scrapinglib/api.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scrapinglib/api.py b/scrapinglib/api.py index e22e810..85da57a 100644 --- a/scrapinglib/api.py +++ b/scrapinglib/api.py @@ -168,7 +168,7 @@ class Scraping: other_sources = sources[sources.index(other_json_data['source']) + 1:] except: pass - + # Return if data not found in all sources if not json_data: print(f'[-]Movie Number [{number}] not found!') @@ -264,4 +264,8 @@ class Scraping: return False if data["number"] is None or data["number"] == "" or data["number"] == "null": return False + if (data["cover"] is None or data["cover"] == "" or data["cover"] == "null") \ + and (data["cover_small"] is None or data["cover_small"] == "" or + data["cover_small"] == "null"): + return False return True