Add support for WotLK
This commit is contained in:
parent
ca190bfc94
commit
573530e446
2 changed files with 5 additions and 1 deletions
|
@ -77,7 +77,8 @@ class CurseForge(Web):
|
|||
files = http.open(f"{cls.api_url}/v1/mods/{curse_id}/files", headers=cls.headers()).json()["data"]
|
||||
|
||||
def key(index: int, file: dict) -> tuple:
|
||||
version_priorities = [73246, 67408, 517] # https://api.curseforge.com/v1/games/1/version-types
|
||||
# https://api.curseforge.com/v1/games/1/version-types: [WotLK, TBC, Classic, Retail]
|
||||
version_priorities = [73713, 73246, 67408, 517]
|
||||
return (
|
||||
min(version_priorities.index(v["gameVersionTypeId"]) for v in file["sortableGameVersions"]),
|
||||
file["releaseType"], # releaseType: 1: release, 2: beta, 3: alpha
|
||||
|
|
|
@ -30,11 +30,14 @@ class GitHub(Web):
|
|||
).json()
|
||||
|
||||
asset_priorities = [
|
||||
r"[._-]wotlk[._-]",
|
||||
r"[._-]wrath[._-]",
|
||||
r"[._-]tbc[._-]",
|
||||
r"[._-]tbcc[._-]",
|
||||
r"[._-]bcc[._-]",
|
||||
r"[._-]bc[._-]",
|
||||
r"[._-]classic[._-]",
|
||||
r"[._-]vanilla[._-]",
|
||||
r".*",
|
||||
]
|
||||
for asset in sorted(
|
||||
|
|
Loading…
Reference in a new issue