[Bug] YouTube videos from IGDB (and other providers) no longer display on the game details page
Maintainers usually reply within 1 day
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
- 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).
- Open the game's details page.
- Check the Overview tab's Media shelf and the Media tab's Artwork subtab.
- 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
youtubeentry toresolveRomArtwork, built fromrom.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
MediaShelfto render an embed item as a 16:9<iframe>from${heartbeat.FRONTEND.YOUTUBE_BASE_URL}/embed/<id>. It should keep v1'scredentiallessandallowattributes and load lazily, so theYOUTUBE_BASE_URLproxy setting covers every request. - Add a label key to all locales, plus tests in
romArtworkandpinnedMedia.
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rommapp/romm
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
rommapp/romm#5857 · 3 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
rommapp/romm#4178 · 1 reaction ·
Maintainers usually reply within 1 day
-
[UI/UX] Misaligned number in searchPossibly taken @NevesHenry claimed this today. Openui/ux
Difficulty 2/5 1-3 hours Newbie friendliness 30/100
Maintainers usually reply within 1 day
-
[Bug] Games do not show up in search if more than 2 letters are used.Possibly taken @andest01 claimed this today. Open
Difficulty 3/5 1-2 days Newbie friendliness 58/100
rommapp/romm#5853 · 7 comments ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 1/5 1-3 hours Newbie friendliness 78/100
web-push-libs/pywebpush#216 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
AgriciDaniel/claude-seo#572 ·
Maintainers usually reply within 5 days
-
area:print-dispatch
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
Maintainers usually reply within 1 day
-
area: docs domain: technical-writing good first issue type: documentation
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
Deepak3699/Ai_Mentor#919 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day