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