mirror of
https://github.com/rommapp/romm.git
synced 2026-02-18 00:27:41 +01:00
load all igsb platform data into app
This commit is contained in:
@@ -65,7 +65,7 @@ def get_supported_platforms(request: Request) -> list[PlatformSchema]:
|
||||
|
||||
now = datetime.now(timezone.utc)
|
||||
supported_platforms = []
|
||||
for platform in IGDB_PLATFORM_LIST:
|
||||
for platform in IGDB_PLATFORM_LIST.values():
|
||||
platform_id = db_platforms_map.get(platform["name"], -1)
|
||||
sup_plat = {
|
||||
"id": platform_id,
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -128,14 +128,6 @@ async def scan_platform(
|
||||
hasheous_platform = meta_hasheous_handler.get_platform(platform_attrs["slug"])
|
||||
tgdb_platform = meta_tgdb_handler.get_platform(platform_attrs["slug"])
|
||||
|
||||
print(f"IGDB: {igdb_platform['igdb_id']}")
|
||||
print(f"Moby: {moby_platform['moby_id']}")
|
||||
print(f"SS: {ss_platform['ss_id']}")
|
||||
print(f"RA: {ra_platform['ra_id']}")
|
||||
print(f"Launchbox: {launchbox_platform['launchbox_id']}")
|
||||
print(f"Hasheous: {hasheous_platform['hasheous_id']}")
|
||||
print(f"TGDB: {tgdb_platform['tgdb_id']}")
|
||||
|
||||
platform_attrs["name"] = platform_attrs["slug"].replace("-", " ").title()
|
||||
platform_attrs.update(
|
||||
{
|
||||
|
||||
@@ -30,7 +30,7 @@ if __name__ == "__main__":
|
||||
matched_hasheous_ids: list[int] = []
|
||||
matched_ra_ids: list[int] = []
|
||||
|
||||
for plt in IGDB_PLATFORM_LIST:
|
||||
for plt in IGDB_PLATFORM_LIST.values():
|
||||
moby_platform = MOBYGAMES_PLATFORM_LIST.get(plt["slug"])
|
||||
moby_slug = moby_platform["slug"] if moby_platform else None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user