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

@@ -24,7 +24,13 @@ from . import BaseTargetScraper
PLATFORM_NAME = "batocera"
GITHUB_API = "https://api.github.com/repos/batocera-linux/batocera.linux/contents"
RAW_BASE = "https://raw.githubusercontent.com/batocera-linux/batocera.linux/master"
try:
from ..batocera_scraper import fetch_stable_tag
except ImportError:
from scraper.batocera_scraper import fetch_stable_tag
_STABLE_TAG = fetch_stable_tag() or "master"
RAW_BASE = f"https://raw.githubusercontent.com/batocera-linux/batocera.linux/{_STABLE_TAG}"
CONFIG_IN_URL = f"{RAW_BASE}/package/batocera/core/batocera-system/Config.in"
ES_SYSTEMS_URL = (