[Feature] Arcade Database (adb.arcadeitalia.net) as a metadata source for arcade games

Open
#5,713 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
json, python
Domain
api, backend

Research direction

Start from the bundled MAME index (mame_index.json) and the existing metadata providers such as ScreenScraper and LaunchBox, to see how a provider is wired in. The Arcade Database API needs a single small client with local caching, one request at a time, and handling of 404, 509 and 503. Done means a maintainer has agreed on where the provider sits, the credit is in the README and the Metadata Providers docs page, and tests cover the response handling. Confirm the design with maintainers first, since this is not a good first task.

Written by the indexing model from the issue text.

Description

Is your feature request related to a problem? Please describe.
Arcade games get thin metadata in RomM. The bundled MAME index (mame_index.json) gives a name, year, manufacturer and genre per romset. The general providers often miss arcade romsets or match them to the wrong game. Clones and regional sets (sf2ce, mslugx…) are hit hardest. Arcade-specific details, like players, controls, emulation status or the game's history, aren't covered at all.

Describe the solution you'd like
Use Arcade Database by motoschifo as an optional metadata source for arcade platforms. It is keyed by MAME romset name, which is exactly how RomM already identifies arcade files. Its scraper API returns JSON, e.g. query_mame&game_name=hangon:

  • query_mame (one romset per call):
    • Basics: title, short title, year, manufacturer, genre, series.
    • Players and controls: players (count and modes), controls and buttons.
    • Screen: orientation and resolution.
    • Emulation and rating: MAME emulation status, and a rating from 0 to 100.
    • Text: history text from arcade-history.com / progettoemma.net.
    • Other: languages, and the parent set (cloneof).
  • query_mame_media: title, in-game, marquee, cabinet, flyer, logo, box, control panel, PCB and more. Also the manual as a PDF, a YouTube video id, and short gameplay videos as MP4.
  • query_mame_like: similar games, which could feed "similar games" for arcade titles.

Permission: I asked Arcade Database whether RomM could use it as a metadata source. The answer was "No problem at all". There are no strict rate limits, but server resources and bandwidth are limited. They also offered to feature RomM on their credits/thanks page once an integration is ready. I can forward the email to a maintainer.

Things an implementation would need to respect (from that reply and the API page):

  • One request at a time per IP: no parallel bursts, and one romset per request (no several romsets in one URL).
  • Cache locally: store results in the database or on disk, so the same information isn't requested again.
  • No retries on unknown names: don't retry romset names that don't match.
  • Handle HTTP status codes properly: e.g. 200, 404, 509 (bandwidth limit), and 503 during maintenance.
  • Media quotas: media downloads have daily, weekly and monthly quotas per IP (download_status), so media would be fetched on demand rather than in bulk.
  • Credit the source: the API page asks to cite the source, authors and copyrights. Its suggested line is "Scraping using Arcade Database by motoschifo", with https://adb.arcadeitalia.net. This could go in the README's metadata list and the docs' Metadata Providers page, next to the other providers.
  • History copyright: when showing the history text, show its copyright line (history_copyright_short or _long) under it.

Coming change: Arcade Database is being rewritten to modern access and security standards, with the new site expected within about six months. The current API calls will be kept as archive/static data. A first integration could use the current API and move to the new one when it is published, so it's worth keeping the API access in one small, replaceable piece.

Describe alternatives you've considered

  • Extending the bundled MAME index. It comes from MAME's own data, so it has no media, history or ratings.
  • Relying on ScreenScraper or LaunchBox for arcade games. They cover popular sets, but matching by romset name is less reliable, especially for clones.

Additional context

  • I'm happy to work on a pull request if you'd like this. I'd welcome guidance on where it should sit among the existing providers and how you'd like the credit shown.
  • Related: #5272 (own platform slugs and metadata IDs for arcade sub-systems).
Dominant language
Python
Stars
13.3k
Forks
747
Avg merge
20h 58m
Merged PRs (30d)
207

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rommapp/romm

All issues in rommapp/romm

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.