mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-28 04:18:52 -06:00
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:
1 parent
ac16875c5b
commit
7cd499531d
27 files changed
+256
-360
No files matched your search
@@ -26,6 +26,8 @@ if not __package__:
|
||||
importlib.import_module("scraper")
|
||||
__package__ = "scraper"
|
||||
|
||||
from model.database import load_database
|
||||
|
||||
from .base_scraper import (
|
||||
BaseScraper,
|
||||
BiosRequirement,
|
||||
@@ -318,10 +320,7 @@ def main() -> None:
|
||||
sys.exit(1)
|
||||
|
||||
if args.compare_db:
|
||||
import json as _json
|
||||
|
||||
with open(args.compare_db) as f:
|
||||
db = _json.load(f)
|
||||
db = load_database(args.compare_db)
|
||||
|
||||
found = 0
|
||||
missing = []
|
||||
|
||||
Reference in new issue
Block a user