Fixed: Kodi Metadata Subtitle Language

This commit is contained in:
Stevie Robinson 2023-01-04 22:39:34 +01:00 committed by GitHub
parent 61fa1e5e3f
commit 3316665e93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -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);