The current movie metadata service assumes the first video result from TMDB is always a YouTube trailer. This leads to two issues:
- Inaccurate Content: TMDB often returns teasers, clips, or "behind-the-scenes" footage at the top of the results. The system should specifically filter for videos where the type is "Trailer" to ensure the "View Trailer" button provides the expected content.
- Hardcoded Provider: The frontend is currently hardcoded to a YouTube embed URL. If TMDB returns a video hosted on Vimeo, the trailer will fail to load.
Suggested Changes:
- Update the metadata fetcher to prioritize results with a
type of "Trailer"
- Implement logic to detect the video provider and render the appropriate embed (YouTube vs. Vimeo)
The current movie metadata service assumes the first video result from TMDB is always a YouTube trailer. This leads to two issues:
Suggested Changes:
typeof "Trailer"