refactor: share scraper and launcher helpers

BaseScraper reads JSON once (_fetch_json, json_object), every scraper files its requirements through systems_from_requirements, and the batocera-systems readers (Batocera, KNULLI, AmberELEC, EmuELEC) inherit CheckBiosScraper. Launcher modules share one Launcher record, one LauncherPatternMissing and one link_record. DAT importers build provenance entries from LogiqxDat.
This commit is contained in:
Abdessamad Derraz committed 2026-11-20 18:28:33 +01:00
1 parent ac16875c5b
commit 7cd499531d
27 files changed
+256 -360

No files matched your search

+1 -13
View File
@@ -53,19 +53,7 @@ def parse_redump_dat(content: str) -> tuple[str, str, list[dict]]:
model, kernel or firmware version), so it is kept per entry.
"""
dat = parse_logiqx(content)
entries = [
{
"dat": dat.name,
"name": rom.name,
"description": rom.description,
"size": rom.size,
"crc32": rom.crc32,
"md5": rom.md5,
"sha1": rom.sha1,
}
for rom in dat.roms
]
return dat.name, dat.version, entries
return dat.name, dat.version, dat.provenance_entries()
def fetch_snapshot() -> tuple[dict, list[dict]]: