|
|
|
@ -214,9 +214,11 @@ namespace Emby.Dlna.Didl
|
|
|
|
|
AddVideoResource(writer, video, deviceId, filter, contentFeature, streamInfo);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
foreach (var subtitle in streamInfo.GetSubtitleProfiles(false, _serverAddress, _accessToken))
|
|
|
|
|
{
|
|
|
|
|
if (subtitle.DeliveryMethod == SubtitleDeliveryMethod.External)
|
|
|
|
|
var subtitleProfiles = streamInfo.GetSubtitleProfiles(false, _serverAddress, _accessToken)
|
|
|
|
|
.Where(subtitle => subtitle.DeliveryMethod == SubtitleDeliveryMethod.External)
|
|
|
|
|
.ToList();
|
|
|
|
|
|
|
|
|
|
foreach (var subtitle in subtitleProfiles)
|
|
|
|
|
{
|
|
|
|
|
var subtitleAdded = AddSubtitleElement(writer, subtitle);
|
|
|
|
|
|
|
|
|
@ -226,7 +228,6 @@ namespace Emby.Dlna.Didl
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private bool AddSubtitleElement(XmlWriter writer, SubtitleStreamInfo info)
|
|
|
|
|
{
|
|
|
|
|