1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-05 10:32:35 +01:00

Fix: Youtube trailers do not play from scraped data

Currently the scraper puts an https:// link, this is not compatible with the YouTube plugin, it needs to be in plugin format with YouTube ID
This commit is contained in:
Laurie Richards 2021-01-20 10:53:46 +00:00 committed by Qstick
parent 9241f4a40d
commit f0bb614360

View File

@ -274,7 +274,7 @@ public override MetadataFileResult MovieMetadata(Movie movie, MovieFile movieFil
details.Add(new XElement("studio", movie.Studio));
details.Add(new XElement("trailer", "https://www.youtube.com/watch?v=" + movie.YouTubeTrailerId));
details.Add(new XElement("trailer", "plugin://plugin.video.youtube/play/?video_id=" + movie.YouTubeTrailerId));
if (movieFile.MediaInfo != null)
{