mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-14 07:23:23 -05:00
feat: scrape platform data from stable release tags
This commit is contained in:
1 parent
653c414ed2
commit
6cbcb609af
7 files changed
+126
-50
No files matched your search
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user