Skip to content

Add comma-separated metadata attribute support to gamelist#3380

Merged
gantoine merged 2 commits into
rommapp:masterfrom
EntropyEngineer:feature-gamelist-comma-separated-attributes
May 16, 2026
Merged

Add comma-separated metadata attribute support to gamelist#3380
gantoine merged 2 commits into
rommapp:masterfrom
EntropyEngineer:feature-gamelist-comma-separated-attributes

Conversation

@EntropyEngineer
Copy link
Copy Markdown
Contributor

Add comma-separated metadata attribute support to gamelist

Description
Hello. I've implemented support for importing attributes as a list when the values are comma-separated and romm supports a list for that attribute.

Previously, importing an attribute like <lang>en,fr</lang> would create a single value in romm, but now it will create two values accordingly.

Which attributes this works for:

  • companies
  • franchises
  • genres
  • regions
  • languages

Add comma-separated metadata attribute support to gamelist
@gantoine gantoine requested a review from Copilot May 16, 2026 00:40
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a helper to split comma-separated values in gamelist.xml metadata fields so that attributes like <lang>en,fr</lang> become multiple list entries instead of a single string. Applied to companies (developer + publisher merged & deduped), franchises, genres, regions, and languages.

Changes:

  • New _split_comma_separated_values helper that trims and compacts comma-split tokens.
  • Updated extract_metadata_from_gamelist_rom to split developer/publisher/family/genre and dedupe companies.
  • Updated _parse_gamelist_xml to split region and language elements.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gantoine gantoine merged commit 1b164ee into rommapp:master May 16, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants