fixup icon names
@@ -1,60 +1,62 @@
|
||||
from typing import NotRequired, TypedDict
|
||||
|
||||
from handler.metadata.base_hander import UniversalPlatformSlug as UPS
|
||||
|
||||
WEBRCADE_SUPPORTED_PLATFORM_SLUGS = frozenset(
|
||||
(
|
||||
"3do",
|
||||
"arcade",
|
||||
"atari2600",
|
||||
"atari5200",
|
||||
"atari7800",
|
||||
"c64",
|
||||
"colecovision",
|
||||
"dos",
|
||||
"gamegear",
|
||||
"gb",
|
||||
"gba",
|
||||
"gbc",
|
||||
"genesis",
|
||||
"lynx",
|
||||
"n64",
|
||||
"neo-geo-cd",
|
||||
"neo-geo-pocket",
|
||||
"neo-geo-pocket-color",
|
||||
"neogeoaes",
|
||||
"neogeomvs",
|
||||
"nes",
|
||||
"pc-fx",
|
||||
"psx",
|
||||
"segacd",
|
||||
"sg1000",
|
||||
"sms",
|
||||
"snes",
|
||||
"supergrafx",
|
||||
"turbografx-cd",
|
||||
"tg16",
|
||||
"virtualboy",
|
||||
"wonderswan",
|
||||
"wonderswan-color",
|
||||
UPS._3DO,
|
||||
UPS.ARCADE,
|
||||
UPS.ATARI2600,
|
||||
UPS.ATARI5200,
|
||||
UPS.ATARI7800,
|
||||
UPS.C64,
|
||||
UPS.COLECOVISION,
|
||||
UPS.DOS,
|
||||
UPS.GAMEGEAR,
|
||||
UPS.GB,
|
||||
UPS.GBA,
|
||||
UPS.GBC,
|
||||
UPS.GENESIS,
|
||||
UPS.LYNX,
|
||||
UPS.N64,
|
||||
UPS.NEO_GEO_CD,
|
||||
UPS.NEO_GEO_POCKET,
|
||||
UPS.NEO_GEO_POCKET_COLOR,
|
||||
UPS.NEOGEOAES,
|
||||
UPS.NEOGEOMVS,
|
||||
UPS.NES,
|
||||
UPS.PC_FX,
|
||||
UPS.PSX,
|
||||
UPS.SEGACD,
|
||||
UPS.SG1000,
|
||||
UPS.SMS,
|
||||
UPS.SNES,
|
||||
UPS.SUPERGRAFX,
|
||||
UPS.TURBOGRAFX_CD,
|
||||
UPS.TG16,
|
||||
UPS.VIRTUALBOY,
|
||||
UPS.WONDERSWAN,
|
||||
UPS.WONDERSWAN_COLOR,
|
||||
)
|
||||
)
|
||||
|
||||
WEBRCADE_SLUG_TO_TYPE_MAP = {
|
||||
"atari2600": "2600",
|
||||
"atari5200": "5200",
|
||||
"atari7800": "7800",
|
||||
"c64": "commodore-c64",
|
||||
"lynx": "lnx",
|
||||
"tg16": "pce",
|
||||
"turbografx-cd": "pce",
|
||||
"supergrafx": "sgx",
|
||||
"pc-fx": "pcfx",
|
||||
"virtualboy": "vb",
|
||||
"gamegear": "gg",
|
||||
"neogeoaes": "neogeo",
|
||||
"neogeomvs": "neogeo",
|
||||
"neo-geo-cd": "neogeocd",
|
||||
"neo-geo-pocket": "ngp",
|
||||
"neo-geo-pocket-color": "ngc",
|
||||
UPS.ATARI2600: "2600",
|
||||
UPS.ATARI5200: "5200",
|
||||
UPS.ATARI7800: "7800",
|
||||
UPS.C64: "commodore-c64",
|
||||
UPS.LYNX: "lnx",
|
||||
UPS.TG16: "pce",
|
||||
UPS.TURBOGRAFX_CD: "pce",
|
||||
UPS.SUPERGRAFX: "sgx",
|
||||
UPS.PC_FX: "pcfx",
|
||||
UPS.VIRTUALBOY: "vb",
|
||||
UPS.GAMEGEAR: "gg",
|
||||
UPS.NEOGEOAES: "neogeo",
|
||||
UPS.NEOGEOMVS: "neogeo",
|
||||
UPS.NEO_GEO_CD: "neogeocd",
|
||||
UPS.NEO_GEO_POCKET: "ngp",
|
||||
UPS.NEO_GEO_POCKET_COLOR: "ngc",
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ from collections.abc import Iterable, Sequence
|
||||
|
||||
from config import ROMM_DB_DRIVER
|
||||
from decorators.database import begin_session
|
||||
from handler.metadata.base_hander import UniversalPlatformSlug as UPS
|
||||
from models.collection import Collection, VirtualCollection
|
||||
from models.platform import Platform
|
||||
from models.rom import Rom, RomFile, RomMetadata, RomUser
|
||||
@@ -29,77 +30,48 @@ from sqlalchemy.orm import InstrumentedAttribute, Query, Session, selectinload
|
||||
from .base_handler import DBBaseHandler
|
||||
|
||||
EJS_SUPPORTED_PLATFORMS = [
|
||||
"3do",
|
||||
"amiga",
|
||||
"amiga-cd32",
|
||||
"arcade",
|
||||
"neogeoaes",
|
||||
"neogeomvs",
|
||||
"atari2600",
|
||||
"atari-2600-plus",
|
||||
"atari5200",
|
||||
"atari7800",
|
||||
"c-plus-4",
|
||||
"c64",
|
||||
"cpet",
|
||||
"commodore-64c",
|
||||
"c128",
|
||||
"commmodore-128",
|
||||
"colecovision",
|
||||
"jaguar",
|
||||
"lynx",
|
||||
"atari-lynx-mkii",
|
||||
"neo-geo-pocket",
|
||||
"neo-geo-pocket-color",
|
||||
"nes",
|
||||
"famicom",
|
||||
"fds",
|
||||
"game-televisison",
|
||||
"new-style-nes",
|
||||
"n64",
|
||||
"ique-player",
|
||||
"nds",
|
||||
"nintendo-ds-lite",
|
||||
"nintendo-dsi",
|
||||
"nintendo-dsi-xl",
|
||||
"gb",
|
||||
"game-boy-pocket",
|
||||
"game-boy-light",
|
||||
"gba",
|
||||
"game-boy-adavance-sp",
|
||||
"game-boy-micro",
|
||||
"gbc",
|
||||
"pc-fx",
|
||||
"psx",
|
||||
"psp",
|
||||
"segacd",
|
||||
"sega32",
|
||||
"gamegear",
|
||||
"sms",
|
||||
"sega-mark-iii",
|
||||
"sega-game-box-9",
|
||||
"sega-master-system-ii",
|
||||
"master-system-super-compact",
|
||||
"master-system-girl",
|
||||
"genesis",
|
||||
"sega-mega-drive-2-slash-genesis",
|
||||
"sega-mega-jet",
|
||||
"mega-pc",
|
||||
"tera-drive",
|
||||
"sega-nomad",
|
||||
"saturn",
|
||||
"snes",
|
||||
"sfam",
|
||||
"super-nintendo-original-european-version",
|
||||
"super-famicom-shvc-001",
|
||||
"super-famicom-jr-model-shvc-101",
|
||||
"new-style-super-nes-model-sns-101",
|
||||
"tg16",
|
||||
"vic-20",
|
||||
"virtualboy",
|
||||
"wonderswan",
|
||||
"swancrystal",
|
||||
"wonderswan-color",
|
||||
UPS._3DO,
|
||||
UPS.AMIGA,
|
||||
UPS.AMIGA_CD32,
|
||||
UPS.ARCADE,
|
||||
UPS.NEOGEOAES,
|
||||
UPS.NEOGEOMVS,
|
||||
UPS.ATARI2600,
|
||||
UPS.ATARI5200,
|
||||
UPS.ATARI7800,
|
||||
UPS.C_PLUS_4,
|
||||
UPS.C64,
|
||||
UPS.CPET,
|
||||
UPS.C64,
|
||||
UPS.C128,
|
||||
UPS.COLECOVISION,
|
||||
UPS.JAGUAR,
|
||||
UPS.LYNX,
|
||||
UPS.NEO_GEO_POCKET,
|
||||
UPS.NEO_GEO_POCKET_COLOR,
|
||||
UPS.NES,
|
||||
UPS.FAMICOM,
|
||||
UPS.FDS,
|
||||
UPS.N64,
|
||||
UPS.NDS,
|
||||
UPS.NINTENDO_DSI,
|
||||
UPS.GB,
|
||||
UPS.GBA,
|
||||
UPS.PC_FX,
|
||||
UPS.PSX,
|
||||
UPS.PSP,
|
||||
UPS.SEGACD,
|
||||
UPS.GENESIS,
|
||||
UPS.SMS,
|
||||
UPS.GAMEGEAR,
|
||||
UPS.SATURN,
|
||||
UPS.SNES,
|
||||
UPS.SFAM,
|
||||
UPS.TG16,
|
||||
UPS.VIC_20,
|
||||
UPS.VIRTUALBOY,
|
||||
UPS.WONDERSWAN,
|
||||
UPS.WONDERSWAN_COLOR,
|
||||
]
|
||||
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@ from exceptions.fs_exceptions import (
|
||||
RomAlreadyExistsException,
|
||||
RomsNotFoundException,
|
||||
)
|
||||
from handler.metadata.base_hander import UniversalPlatformSlug as UPS
|
||||
from models.platform import Platform
|
||||
from models.rom import Rom, RomFile, RomFileCategory
|
||||
from py7zr.exceptions import (
|
||||
@@ -65,33 +66,32 @@ COMPRESSED_FILE_EXTENSIONS = frozenset(
|
||||
|
||||
NON_HASHABLE_PLATFORMS = frozenset(
|
||||
(
|
||||
"amazon-alexa",
|
||||
"amazon-fire-tv",
|
||||
"android",
|
||||
"gear-vr",
|
||||
"ios",
|
||||
"ipad",
|
||||
"linux",
|
||||
"mac",
|
||||
"meta-quest-2",
|
||||
"meta-quest-3",
|
||||
"oculus-go",
|
||||
"oculus-quest",
|
||||
"oculus-rift",
|
||||
"pc",
|
||||
"ps3",
|
||||
"ps4",
|
||||
"ps4",
|
||||
"ps5",
|
||||
"psvr",
|
||||
"psvr2",
|
||||
"series-x-s",
|
||||
"switch",
|
||||
"wiiu",
|
||||
"win",
|
||||
"xbox-360",
|
||||
"xbox360",
|
||||
"xboxone",
|
||||
UPS.AMAZON_ALEXA,
|
||||
UPS.AMAZON_FIRE_TV,
|
||||
UPS.ANDROID,
|
||||
UPS.GEAR_VR,
|
||||
UPS.IOS,
|
||||
UPS.IPAD,
|
||||
UPS.LINUX,
|
||||
UPS.MAC,
|
||||
UPS.META_QUEST_2,
|
||||
UPS.META_QUEST_3,
|
||||
UPS.OCULUS_GO,
|
||||
UPS.OCULUS_QUEST,
|
||||
UPS.OCULUS_RIFT,
|
||||
UPS.PS3,
|
||||
UPS.PS4,
|
||||
UPS.PS5,
|
||||
UPS.PSVR,
|
||||
UPS.PSVR2,
|
||||
UPS.SERIES_X_S,
|
||||
UPS.SWITCH,
|
||||
UPS.SWITCH_2,
|
||||
UPS.WIIU,
|
||||
UPS.WIN,
|
||||
UPS.XBOX360,
|
||||
UPS.XBOXONE,
|
||||
UPS.SERIES_X_S,
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@@ -45,8 +45,8 @@ if __name__ == "__main__":
|
||||
or ra_platform.get("name", None)
|
||||
or slug_lower.replace("-", " ").title(),
|
||||
"folder": slug_lower,
|
||||
"igdb_slug": igdb_platform["slug"],
|
||||
"moby_slug": moby_platform["slug"],
|
||||
"igdb_slug": igdb_platform.get("igdb_slug", None),
|
||||
"moby_slug": moby_platform.get("moby_slug", None),
|
||||
"ss_id": ss_platform["ss_id"],
|
||||
"launchbox_id": launchbox_platform["launchbox_id"],
|
||||
"hasheous_id": hasheous_platform["hasheous_id"],
|
||||
|
||||
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 9.4 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 8.3 KiB |
|
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 8.9 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 6.9 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 265 KiB |
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |