From 07b44f51f8ed63b1971e5e5d8fa2dff26e7cbeed Mon Sep 17 00:00:00 2001 From: mcinj <98779161+mcinj@users.noreply.github.com> Date: Mon, 9 May 2022 06:35:24 -0400 Subject: [PATCH] more generic win selector --- src/SteamGifts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SteamGifts.py b/src/SteamGifts.py index b3b7eb1..052b023 100644 --- a/src/SteamGifts.py +++ b/src/SteamGifts.py @@ -83,9 +83,9 @@ class SteamGifts: logger.error("⛔ Cookie is not valid.") raise SteamGiftsException("Cookie is not valid.") - won = soup.select("a[title='Giveaways Won'] div.fade_infinite") + won = soup.select("a[title='Giveaways Won'] div") if won: - number_won = soup.select_one("a[title='Giveaways Won'] div.fade_infinite").text + number_won = soup.select_one("a[title='Giveaways Won'] div").text won_notifications = TableNotification.get_won_notifications_today() if won_notifications and len(won_notifications) >= 1: logger.debug("Win(s) detected, but we have already notified that there are won games waiting "