Skip to content

Commit

Permalink
fix: ubisoft again (#294)
Browse files Browse the repository at this point in the history
Signed-off-by: Eiko Wagenknecht <[email protected]>
  • Loading branch information
eikowagenknecht authored Dec 3, 2023
1 parent 14beafe commit d1558ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lootscraper/scraper/ubisoft_games.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit d1558ee

Please sign in to comment.