From 985be444d6515cd691d1d7d73cfe85f45564a5d0 Mon Sep 17 00:00:00 2001 From: mcinj <98779161+mcinj@users.noreply.github.com> Date: Fri, 6 May 2022 07:07:00 -0400 Subject: [PATCH] not all steam things are 'apps' --- src/giveaway.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/giveaway.py b/src/giveaway.py index 113e9d3..b34e5b3 100644 --- a/src/giveaway.py +++ b/src/giveaway.py @@ -46,7 +46,7 @@ class Giveaway: self.time_created_in_minutes = self.determine_time_in_minutes(times[1]['data-timestamp']) def get_steam_app_id(self, steam_url): - match = re.search('^.+/app/(?P[0-9]+)/', steam_url, re.IGNORECASE) + match = re.search('^.+/[a-z0-9]+/(?P[0-9]+)/$', steam_url, re.IGNORECASE) if match: return match.group('steam_app_id') else: