Fixed: Kodi Metadata Subtitle Language
This commit is contained in:
parent
61fa1e5e3f
commit
3316665e93
|
@ -327,11 +327,14 @@ namespace NzbDrone.Core.Extras.Metadata.Consumers.Xbmc
|
|||
streamDetails.Add(audio);
|
||||
|
||||
if (episodeFile.MediaInfo.Subtitles != null && episodeFile.MediaInfo.Subtitles.Count > 0)
|
||||
{
|
||||
foreach (var s in episodeFile.MediaInfo.Subtitles)
|
||||
{
|
||||
var subtitle = new XElement("subtitle");
|
||||
subtitle.Add(new XElement("language", episodeFile.MediaInfo.Subtitles));
|
||||
subtitle.Add(new XElement("language", s));
|
||||
streamDetails.Add(subtitle);
|
||||
}
|
||||
}
|
||||
|
||||
fileInfo.Add(streamDetails);
|
||||
details.Add(fileInfo);
|
||||
|
|
Loading…
Reference in New Issue