mirror of
https://github.com/Radarr/Radarr.git
synced 2024-08-17 07:49:45 +02:00
Fixed: Kodi Metadata Subtitle Language
Fixes #7962 Co-Authored-By: Stevie Robinson <stevie.robinson@gmail.com>
This commit is contained in:
parent
4963920a46
commit
0fb738aa2e
@ -342,11 +342,14 @@ public override MetadataFileResult MovieMetadata(Movie movie, MovieFile movieFil
|
|||||||
streamDetails.Add(audio);
|
streamDetails.Add(audio);
|
||||||
|
|
||||||
if (movieFile.MediaInfo.Subtitles != null && movieFile.MediaInfo.Subtitles.Count > 0)
|
if (movieFile.MediaInfo.Subtitles != null && movieFile.MediaInfo.Subtitles.Count > 0)
|
||||||
|
{
|
||||||
|
foreach (var s in movieFile.MediaInfo.Subtitles)
|
||||||
{
|
{
|
||||||
var subtitle = new XElement("subtitle");
|
var subtitle = new XElement("subtitle");
|
||||||
subtitle.Add(new XElement("language", movieFile.MediaInfo.Subtitles));
|
subtitle.Add(new XElement("language", s));
|
||||||
streamDetails.Add(subtitle);
|
streamDetails.Add(subtitle);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fileInfo.Add(streamDetails);
|
fileInfo.Add(streamDetails);
|
||||||
details.Add(fileInfo);
|
details.Add(fileInfo);
|
||||||
|
Loading…
Reference in New Issue
Block a user