itch-dl/itch_dl/consts.py

19 lines
436 B
Python
Raw Normal View History

ITCH_BASE = "itch.io"
ITCH_URL = f"https://{ITCH_BASE}"
ITCH_API = f"https://api.{ITCH_BASE}"
2022-05-15 16:38:31 +02:00
# Extracts https://user.itch.io/gamename to {'author': 'user', 'game': 'gamename'}
ITCH_GAME_URL_REGEX = r"^https:\/\/(?P<author>[\w\d\-_]+).itch.io\/(?P<game>[\w\d\-_]+)$"
ITCH_BROWSER_TYPES = [
"games",
"tools",
"game-assets",
"comics",
"books",
"physical-games",
"soundtracks",
"game-mods",
"misc",
]