mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 11:57:55 +02:00
Fixed HasPrimaryImage on DTOBaseItem
This commit is contained in:
parent
e4b0eb5779
commit
9baf40becb
1 changed files with 3 additions and 3 deletions
|
@ -41,14 +41,14 @@ namespace MediaBrowser.Api
|
||||||
tasks.Add(AttachPeople(dto, item));
|
tasks.Add(AttachPeople(dto, item));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AttachBasicFields(dto, item, user);
|
||||||
|
|
||||||
// Make sure all the tasks we kicked off have completed.
|
// Make sure all the tasks we kicked off have completed.
|
||||||
if (tasks.Count > 0)
|
if (tasks.Count > 0)
|
||||||
{
|
{
|
||||||
await Task.WhenAll(tasks).ConfigureAwait(false);
|
await Task.WhenAll(tasks).ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
AttachBasicFields(dto, item, user);
|
|
||||||
|
|
||||||
return dto;
|
return dto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ namespace MediaBrowser.Api
|
||||||
dto.HasArt = !string.IsNullOrEmpty(item.ArtImagePath);
|
dto.HasArt = !string.IsNullOrEmpty(item.ArtImagePath);
|
||||||
dto.HasBanner = !string.IsNullOrEmpty(item.BannerImagePath);
|
dto.HasBanner = !string.IsNullOrEmpty(item.BannerImagePath);
|
||||||
dto.HasLogo = !string.IsNullOrEmpty(item.LogoImagePath);
|
dto.HasLogo = !string.IsNullOrEmpty(item.LogoImagePath);
|
||||||
dto.HasPrimaryImage = !string.IsNullOrEmpty(item.LogoImagePath);
|
dto.HasPrimaryImage = !string.IsNullOrEmpty(item.PrimaryImagePath);
|
||||||
dto.HasThumb = !string.IsNullOrEmpty(item.ThumbnailImagePath);
|
dto.HasThumb = !string.IsNullOrEmpty(item.ThumbnailImagePath);
|
||||||
dto.Id = item.Id;
|
dto.Id = item.Id;
|
||||||
dto.IsNew = item.IsRecentlyAdded(user);
|
dto.IsNew = item.IsRecentlyAdded(user);
|
||||||
|
|
Loading…
Reference in a new issue