Add missing example config options, fix Steam URL parsing
This commit is contained in:
parent
893229363f
commit
a30fa1aad6
2 changed files with 7 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue