[Feature] Allow downloading individual files from multi-file rom-converto outputs (e.g. ?format=god) without zipping

Open
#5,770 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
32/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
nginx, python, xml
Domain
api, backend, cloud

Research direction

The request centres on the on-the-fly conversion path that bundles multi-file outputs (e.g. ?format=god) into a mod_zip stream, and on the cache directory under $ROMM_TMP_PATH/cache/converts. Start by finding where the download endpoint builds that zip response, then see how the X-Accel-Redirect header is set. Done would mean a manifest endpoint listing relative paths and sizes, and a file_path parameter that rejects paths escaping the cached directory.

Written by the indexing model from the issue text.

Description

Is your feature request related to a problem? Please describe.

When using on-the-fly conversion for multi-file output formats like Xbox 360 Games on Demand (?format=god), RomM bundles the converted directory into a single .zip stream via nginx mod_zip.

For third-party console clients (such as an Xbox 360 Aurora homebrew downloader), downloading a multi-gigabyte .zip stream fails due to the console's 4 GB FATX single-file limit, and the console's 512 MB RAM cannot decompress a 6–7 GB archive locally—even though the individual GoD chunks inside (Data0000, Data0001, etc.) are ~170 MB each and natively supported by the hardware.

Describe the solution you'd like

Provide an API way for third-party clients to enumerate and fetch individual files from a cached rom-converto output directory without wrapping them in mod_zip:

  1. An endpoint or query option (e.g., ?format=god&manifest=true) that triggers/checks the conversion cache and returns a JSON list of relative file paths and sizes.
  2. A query parameter on the download endpoint (e.g., ?format=god&file_path=...) that validates the path stays within the cached conversion directory and serves that single file directly via X-Accel-Redirect.

Describe alternatives you've considered

• Pre-converting the entire library to GoD folders and fetching via ?file_ids=, which loses the storage and workflow benefits of rom-converto.

• Running a custom sidecar proxy on the host to read $ROMM_TMP_PATH/cache/converts and serve individual files to the console.

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.