Browse Source

Update steamid.py

pull/415/head
James Hilton-Balfe 2 years ago
committed by GitHub
parent
commit
de9cf6931c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      steam/steamid.py

4
steam/steamid.py

@ -551,12 +551,12 @@ def steam64_from_url(url, http_timeout=30):
https://steamcommunity.com/profiles/[U:1:12]
https://steamcommunity.com/profiles/76561197960265740
https://steamcommunity.com/id/johnc
https://steamcommunity.com/user/r
https://steamcommunity.com/user/cv-dgb/
https://steamcommunity.com/app/570
"""
match = re.match(r'^(?P<clean_url>https?://steamcommunity.com/'
r'(?P<type>profiles|id|gid|groups|user)/(?P<value>.*?))(?:/(?:.*)?)?$', url)
r'(?P<type>profiles|id|gid|groups|user|app)/(?P<value>.*?))(?:/(?:.*)?)?$', url)
if not match:
return None

Loading…
Cancel
Save