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