From 3316665e93ad471511dcf3d63e32c31ee023932d Mon Sep 17 00:00:00 2001 From: Stevie Robinson Date: Wed, 4 Jan 2023 22:39:34 +0100 Subject: [PATCH] Fixed: Kodi Metadata Subtitle Language --- .../Extras/Metadata/Consumers/Xbmc/XbmcMetadata.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/NzbDrone.Core/Extras/Metadata/Consumers/Xbmc/XbmcMetadata.cs b/src/NzbDrone.Core/Extras/Metadata/Consumers/Xbmc/XbmcMetadata.cs index cdc4b6b55..5ac8e5eff 100644 --- a/src/NzbDrone.Core/Extras/Metadata/Consumers/Xbmc/XbmcMetadata.cs +++ b/src/NzbDrone.Core/Extras/Metadata/Consumers/Xbmc/XbmcMetadata.cs @@ -328,9 +328,12 @@ namespace NzbDrone.Core.Extras.Metadata.Consumers.Xbmc if (episodeFile.MediaInfo.Subtitles != null && episodeFile.MediaInfo.Subtitles.Count > 0) { - var subtitle = new XElement("subtitle"); - subtitle.Add(new XElement("language", episodeFile.MediaInfo.Subtitles)); - streamDetails.Add(subtitle); + foreach (var s in episodeFile.MediaInfo.Subtitles) + { + var subtitle = new XElement("subtitle"); + subtitle.Add(new XElement("language", s)); + streamDetails.Add(subtitle); + } } fileInfo.Add(streamDetails);