mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 17:44:43 +01:00
add basic dlna server browsing
This commit is contained in:
@@ -294,6 +294,7 @@ namespace MediaBrowser.Server.Implementations.Session
|
||||
session.PlayState.VolumeLevel = info.VolumeLevel;
|
||||
session.PlayState.AudioStreamIndex = info.AudioStreamIndex;
|
||||
session.PlayState.SubtitleStreamIndex = info.SubtitleStreamIndex;
|
||||
session.PlayState.PlayMethod = info.PlayMethod;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -1253,8 +1254,8 @@ namespace MediaBrowser.Server.Implementations.Session
|
||||
}
|
||||
|
||||
var backropItem = item.HasImage(ImageType.Backdrop) ? item : null;
|
||||
|
||||
var thumbItem = item.HasImage(ImageType.Thumb) ? item : null;
|
||||
var logoItem = item.HasImage(ImageType.Logo) ? item : null;
|
||||
|
||||
if (thumbItem == null)
|
||||
{
|
||||
@@ -1292,6 +1293,11 @@ namespace MediaBrowser.Server.Implementations.Session
|
||||
thumbItem = item.Parents.FirstOrDefault(i => i.HasImage(ImageType.Thumb));
|
||||
}
|
||||
|
||||
if (logoItem == null)
|
||||
{
|
||||
logoItem = item.Parents.FirstOrDefault(i => i.HasImage(ImageType.Logo));
|
||||
}
|
||||
|
||||
if (thumbItem != null)
|
||||
{
|
||||
info.ThumbImageTag = GetImageCacheTag(thumbItem, ImageType.Thumb);
|
||||
@@ -1304,6 +1310,12 @@ namespace MediaBrowser.Server.Implementations.Session
|
||||
info.BackdropItemId = GetDtoId(backropItem);
|
||||
}
|
||||
|
||||
if (logoItem != null)
|
||||
{
|
||||
info.LogoImageTag = GetImageCacheTag(logoItem, ImageType.Logo);
|
||||
info.LogoItemId = GetDtoId(logoItem);
|
||||
}
|
||||
|
||||
return info;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user