Add missing example config options, fix Steam URL parsing

This commit is contained in:
Manuel 2024-10-17 16:48:30 +02:00
parent 893229363f
commit a30fa1aad6
Signed by: Manuel
GPG key ID: 4085037435E1F07A
2 changed files with 7 additions and 1 deletions

View file

@ -59,7 +59,7 @@ class GiveawayEntry:
return None
def _get_steam_app_id(self, steam_url):
match = re.search('^.+/[a-z0-9]+/(?P<steam_app_id>[0-9]+)/$', steam_url, re.IGNORECASE)
match = re.search('^.+/[a-z0-9]+/(?P<steam_app_id>[0-9]+)(/|\?)', steam_url, re.IGNORECASE)
if match:
return match.group('steam_app_id')
else: