mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 02:22:44 +01:00
Update backend/handler/metadata/launchbox_handler/media.py
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
84332b5c63
commit
f1df8a6ca9
@@ -68,6 +68,9 @@ def rom_region_shortcodes(fs_name: str) -> tuple[str, ...]:
|
||||
key=lambda code: priority.index(code) if code in priority else len(priority)
|
||||
)
|
||||
|
||||
if not rom_codes:
|
||||
return ()
|
||||
|
||||
return tuple(dict.fromkeys(rom_codes + priority))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user