mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 22:13:06 +03:00
update components
This commit is contained in:
@@ -360,7 +360,6 @@ namespace Emby.Server.Implementations.Dto
|
||||
var collectionFolder = item as ICollectionFolder;
|
||||
if (collectionFolder != null)
|
||||
{
|
||||
dto.OriginalCollectionType = collectionFolder.CollectionType;
|
||||
dto.CollectionType = collectionFolder.CollectionType;
|
||||
}
|
||||
|
||||
@@ -492,7 +491,7 @@ namespace Emby.Server.Implementations.Dto
|
||||
}
|
||||
}
|
||||
|
||||
if (!(item is LiveTvProgram))
|
||||
//if (!(item is LiveTvProgram))
|
||||
{
|
||||
dto.PlayAccess = item.GetPlayAccess(user);
|
||||
}
|
||||
@@ -505,33 +504,6 @@ namespace Emby.Server.Implementations.Dto
|
||||
dto.SupportsSync = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (fields.Contains(ItemFields.SeasonUserData))
|
||||
{
|
||||
var episode = item as Episode;
|
||||
|
||||
if (episode != null)
|
||||
{
|
||||
var season = episode.Season;
|
||||
|
||||
if (season != null)
|
||||
{
|
||||
dto.SeasonUserData = await _userDataRepository.GetUserDataDto(season, user).ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var userView = item as UserView;
|
||||
if (userView != null)
|
||||
{
|
||||
dto.HasDynamicCategories = userView.ContainsDynamicCategories(user);
|
||||
}
|
||||
|
||||
var collectionFolder = item as ICollectionFolder;
|
||||
if (collectionFolder != null)
|
||||
{
|
||||
dto.HasDynamicCategories = false;
|
||||
}
|
||||
}
|
||||
|
||||
private int GetChildCount(Folder folder, User user)
|
||||
@@ -882,20 +854,6 @@ namespace Emby.Server.Implementations.Dto
|
||||
}
|
||||
dto.Container = item.Container;
|
||||
|
||||
var hasBudget = item as IHasBudget;
|
||||
if (hasBudget != null)
|
||||
{
|
||||
if (fields.Contains(ItemFields.Budget))
|
||||
{
|
||||
dto.Budget = hasBudget.Budget;
|
||||
}
|
||||
|
||||
if (fields.Contains(ItemFields.Revenue))
|
||||
{
|
||||
dto.Revenue = hasBudget.Revenue;
|
||||
}
|
||||
}
|
||||
|
||||
dto.EndDate = item.EndDate;
|
||||
|
||||
if (fields.Contains(ItemFields.HomePageUrl))
|
||||
|
||||
Reference in New Issue
Block a user