From d1558ee3aa74a481b58701d955ea05b161a2a114 Mon Sep 17 00:00:00 2001 From: Eiko Wagenknecht Date: Sun, 3 Dec 2023 14:40:12 +0100 Subject: [PATCH] fix: ubisoft again (#294) Signed-off-by: Eiko Wagenknecht --- src/lootscraper/scraper/ubisoft_games.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lootscraper/scraper/ubisoft_games.py b/src/lootscraper/scraper/ubisoft_games.py index 7f5f1ec1..9d994b3a 100644 --- a/src/lootscraper/scraper/ubisoft_games.py +++ b/src/lootscraper/scraper/ubisoft_games.py @@ -75,7 +75,10 @@ async def read_raw_offer( raise ValueError("Couldn't find title.") # Filter out various other promotions - if not title.startswith("Get ") or not title.endswith(" for FREE!"): + compare_title = title.lower() + if not compare_title.startswith("get ") or not compare_title.endswith( + " for free!", + ): return None # Format (values in <> are an example):