|
|
|
@ -214,16 +214,17 @@ namespace Emby.Dlna.Didl
|
|
|
|
|
AddVideoResource(writer, video, deviceId, filter, contentFeature, streamInfo);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
foreach (var subtitle in streamInfo.GetSubtitleProfiles(false, _serverAddress, _accessToken))
|
|
|
|
|
var subtitleProfiles = streamInfo.GetSubtitleProfiles(false, _serverAddress, _accessToken)
|
|
|
|
|
.Where(subtitle => subtitle.DeliveryMethod == SubtitleDeliveryMethod.External)
|
|
|
|
|
.ToList();
|
|
|
|
|
|
|
|
|
|
foreach (var subtitle in subtitleProfiles)
|
|
|
|
|
{
|
|
|
|
|
if (subtitle.DeliveryMethod == SubtitleDeliveryMethod.External)
|
|
|
|
|
{
|
|
|
|
|
var subtitleAdded = AddSubtitleElement(writer, subtitle);
|
|
|
|
|
var subtitleAdded = AddSubtitleElement(writer, subtitle);
|
|
|
|
|
|
|
|
|
|
if (subtitleAdded && _profile.EnableSingleSubtitleLimit)
|
|
|
|
|
{
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
if (subtitleAdded && _profile.EnableSingleSubtitleLimit)
|
|
|
|
|
{
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|