mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-20 00:55:13 +01:00
fixes #887 - Support ttml subtitle output
This commit is contained in:
@@ -112,6 +112,8 @@ namespace MediaBrowser.Server.Implementations.Dto
|
||||
|
||||
var dto = new BaseItemDto();
|
||||
|
||||
dto.SupportsPlaylists = item.SupportsAddingToPlaylist;
|
||||
|
||||
if (fields.Contains(ItemFields.People))
|
||||
{
|
||||
AttachPeople(dto, item);
|
||||
@@ -849,17 +851,7 @@ namespace MediaBrowser.Server.Implementations.Dto
|
||||
|
||||
if (fields.Contains(ItemFields.Overview))
|
||||
{
|
||||
// TODO: Remove this after a while, since it's been moved to the providers
|
||||
if (item is MusicArtist)
|
||||
{
|
||||
var strippedOverview = string.IsNullOrEmpty(item.Overview) ? item.Overview : item.Overview.StripHtml();
|
||||
|
||||
dto.Overview = strippedOverview;
|
||||
}
|
||||
else
|
||||
{
|
||||
dto.Overview = item.Overview;
|
||||
}
|
||||
dto.Overview = item.Overview;
|
||||
}
|
||||
|
||||
if (fields.Contains(ItemFields.ShortOverview))
|
||||
|
||||
@@ -12,7 +12,6 @@ using MediaBrowser.Controller.Localization;
|
||||
using MediaBrowser.Controller.Persistence;
|
||||
using MediaBrowser.Controller.Providers;
|
||||
using MediaBrowser.Controller.Sorting;
|
||||
using MediaBrowser.Model.Configuration;
|
||||
using MediaBrowser.Model.Dto;
|
||||
using MediaBrowser.Model.Entities;
|
||||
using MediaBrowser.Model.LiveTv;
|
||||
|
||||
@@ -124,7 +124,7 @@ namespace MediaBrowser.Server.Implementations.Udp
|
||||
{
|
||||
Address = serverAddress,
|
||||
Id = _appHost.ServerId,
|
||||
Name = _appHost.Name
|
||||
Name = _appHost.FriendlyName
|
||||
};
|
||||
|
||||
await SendAsync(Encoding.UTF8.GetBytes(_json.SerializeToString(response)), endpoint);
|
||||
|
||||
Reference in New Issue
Block a user