[Bug] YouTube videos from IGDB (and other providers) no longer display on the game details page

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

Maintainers usually reply within 1 day

@sdornan is already working on this.

Since Dec 3, 2026.

  • #5855 by @sdornan — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
html, python, typescript
Domain
frontend

Research direction

Start with utils/romArtwork.ts, then trace how MediaShelf and the pinned-media logic consume its video entries; backend/handler/metadata/igdb_handler.py shows how the backend ID is stored. Add a YouTube artwork entry, render its ID in a lazy 16:9 iframe using the heartbeat URL and v1 attributes, and add locale labels. Done means manual IDs override scraped IDs, the video appears in the specified media locations, and the new romArtwork and pinnedMedia tests pass; note that PR #5855 already targets this work.

Written by the indexing model from the issue text.

Description

RomM version
5.5.0-alpha.1 and later (any build that includes #5309)

Describe the bug
The game details page no longer shows a ROM's YouTube video. The backend still scrapes and stores the video ID: IGDB saves the first videos.video_id as youtube_video_id, and LaunchBox, Pouet and Demozoo fill the same field. The ID can still be edited under Edit ROM > Additional details (manual_metadata.youtube_video_id). But nothing in the v2 UI renders it.

The only YouTube player was the iframe in v1's components/Details/Info/MediaCarousel.vue, which embedded ${YOUTUBE_BASE_URL}/embed/<id>. That file was deleted with the rest of the v1 UI in #5309, and the v2 game details page never got a replacement. FRONTEND.YOUTUBE_BASE_URL is still sent in the heartbeat, but the frontend no longer reads it.

To Reproduce

  1. Match a game to IGDB where the game has a video on IGDB (or set a YouTube video ID manually under Edit ROM > Additional details).
  2. Open the game's details page.
  3. Check the Overview tab's Media shelf and the Media tab's Artwork subtab.
  4. No YouTube video is shown.

Expected behavior
The YouTube video is shown with the rest of the game's media, as it was in v1. The manual override takes precedence over the scraped ID.

Suggested approach
ScreenScraper videos already appear in MediaShelf through utils/romArtwork.ts (the video and video_normalized entries with isVideo: true). Those feed the Media tab's Artwork subtab and the Overview tab's default pinned media. The YouTube video could fit in the same way:

  • Add a youtube entry to resolveRomArtwork, built from rom.manual_metadata?.youtube_video_id || rom.youtube_video_id, so it can be pinned and shows in the default Overview selection like the other videos.
  • Teach MediaShelf to render an embed item as a 16:9 <iframe> from ${heartbeat.FRONTEND.YOUTUBE_BASE_URL}/embed/<id>. It should keep v1's credentialless and allow attributes and load lazily, so the YOUTUBE_BASE_URL proxy setting covers every request.
  • Add a label key to all locales, plus tests in romArtwork and pinnedMedia.

Additional context

  • Removed in: #5309 (chore(frontend): remove the v1 UI and console mode)
  • Backend source: backend/handler/metadata/igdb_handler.py (youtube_video_id)
  • Proxy setting: YOUTUBE_BASE_URL (originally added in ROMM-1975)
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.