mirror of
https://github.com/Abdess/retrobios.git
synced 2026-06-21 19:12:48 +00:00
fix: exporters use _dest fallback, merge colliding systems, per-platform subdirs
This commit is contained in:
parent
0be68edad0
commit
4fbb3571f8
7 changed files with 48 additions and 22 deletions
|
|
@ -31,6 +31,11 @@ class BaseExporter(ABC):
|
|||
"""Check if a filename is a placeholder pattern (not a real file)."""
|
||||
return "<" in name or ">" in name or "*" in name
|
||||
|
||||
@staticmethod
|
||||
def _dest(fe: dict) -> str:
|
||||
"""Get destination path for a file entry, falling back to name."""
|
||||
return fe.get("path") or fe.get("destination") or fe.get("name", "")
|
||||
|
||||
@staticmethod
|
||||
def _display_name(
|
||||
sys_id: str, scraped_sys: dict | None = None,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue