mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 22:17:25 -04:00
removed dead code
This commit is contained in:
parent
a38567e787
commit
5ced09d169
2 changed files with 0 additions and 32 deletions
|
@ -508,23 +508,6 @@ namespace Emby.Dlna.ContentDirectory
|
||||||
|
|
||||||
if (stubType.HasValue)
|
if (stubType.HasValue)
|
||||||
{
|
{
|
||||||
if (stubType.Value == StubType.People)
|
|
||||||
{
|
|
||||||
var items = _libraryManager.GetPeopleItems(new InternalPeopleQuery
|
|
||||||
{
|
|
||||||
ItemId = item.Id
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
var result = new QueryResult<ServerItem>
|
|
||||||
{
|
|
||||||
Items = items.Select(i => new ServerItem(i)).ToArray(items.Count),
|
|
||||||
TotalRecordCount = items.Count
|
|
||||||
};
|
|
||||||
|
|
||||||
return ApplyPaging(result, startIndex, limit);
|
|
||||||
}
|
|
||||||
|
|
||||||
var person = item as Person;
|
var person = item as Person;
|
||||||
if (person != null)
|
if (person != null)
|
||||||
{
|
{
|
||||||
|
@ -1356,7 +1339,6 @@ namespace Emby.Dlna.ContentDirectory
|
||||||
public enum StubType
|
public enum StubType
|
||||||
{
|
{
|
||||||
Folder = 0,
|
Folder = 0,
|
||||||
People = 1,
|
|
||||||
Latest = 2,
|
Latest = 2,
|
||||||
Playlists = 3,
|
Playlists = 3,
|
||||||
Albums = 4,
|
Albums = 4,
|
||||||
|
|
|
@ -391,14 +391,6 @@ namespace Emby.Dlna.Didl
|
||||||
|
|
||||||
private string GetDisplayName(BaseItem item, StubType? itemStubType, BaseItem context)
|
private string GetDisplayName(BaseItem item, StubType? itemStubType, BaseItem context)
|
||||||
{
|
{
|
||||||
if (itemStubType.HasValue && itemStubType.Value == StubType.People)
|
|
||||||
{
|
|
||||||
if (item is Video)
|
|
||||||
{
|
|
||||||
return _localization.GetLocalizedString("HeaderCastCrew");
|
|
||||||
}
|
|
||||||
return _localization.GetLocalizedString("HeaderPeople");
|
|
||||||
}
|
|
||||||
if (itemStubType.HasValue && itemStubType.Value == StubType.Latest)
|
if (itemStubType.HasValue && itemStubType.Value == StubType.Latest)
|
||||||
{
|
{
|
||||||
return _localization.GetLocalizedString("ViewTypeMusicLatest");
|
return _localization.GetLocalizedString("ViewTypeMusicLatest");
|
||||||
|
@ -961,12 +953,6 @@ namespace Emby.Dlna.Didl
|
||||||
|
|
||||||
private void AddCover(BaseItem item, BaseItem context, StubType? stubType, XmlWriter writer)
|
private void AddCover(BaseItem item, BaseItem context, StubType? stubType, XmlWriter writer)
|
||||||
{
|
{
|
||||||
if (stubType.HasValue && stubType.Value == StubType.People)
|
|
||||||
{
|
|
||||||
AddEmbeddedImageAsCover("people", writer);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
ImageDownloadInfo imageInfo = null;
|
ImageDownloadInfo imageInfo = null;
|
||||||
|
|
||||||
if (context is UserView)
|
if (context is UserView)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue