feat: scrape platform data from stable release tags

This commit is contained in:
Abdessamad Derraz committed 2026-08-06 16:41:47 +02:00
1 parent 653c414ed2
commit 6cbcb609af
7 files changed
+126 -50

No files matched your search

+8 -9
View File
@@ -32,13 +32,15 @@ except ImportError:
PLATFORM_NAME = "romm"
SOURCE_URL = (
"https://raw.githubusercontent.com/rommapp/romm/"
"master/backend/models/fixtures/known_bios_files.json"
)
GITHUB_REPO = "rommapp/romm"
_STABLE_TAG = fetch_github_latest_version(GITHUB_REPO) or "master"
SOURCE_URL = (
f"https://raw.githubusercontent.com/rommapp/romm/{_STABLE_TAG}"
"/backend/models/fixtures/known_bios_files.json"
)
# IGDB slug -> retrobios system ID
SLUG_MAP: dict[str, str] = {
"3do": "3do",
@@ -201,10 +203,7 @@ class Scraper(BaseScraper):
systems[req.system]["files"].append(entry)
version = ""
tag = fetch_github_latest_version(GITHUB_REPO)
if tag:
version = tag
version = _STABLE_TAG if _STABLE_TAG != "master" else ""
return {
"inherits": "emulatorjs",