mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-14 11:23:42 +02:00
Fixed: Kodi Metadata Subtitle Language
This commit is contained in:
parent
61fa1e5e3f
commit
3316665e93
@ -328,9 +328,12 @@ public override MetadataFileResult EpisodeMetadata(Series series, EpisodeFile ep
|
||||
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user