diff --git a/wau/providers/curseforge.py b/wau/providers/curseforge.py index 6bc92c8..b20ac2c 100644 --- a/wau/providers/curseforge.py +++ b/wau/providers/curseforge.py @@ -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 diff --git a/wau/providers/github.py b/wau/providers/github.py index 90240cf..1f0fe4c 100644 --- a/wau/providers/github.py +++ b/wau/providers/github.py @@ -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(