mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-22 10:04:44 +01:00
added more images to search output
This commit is contained in:
@@ -1394,11 +1394,12 @@ namespace MediaBrowser.Controller.Entities
|
||||
{
|
||||
if (type == ImageType.Backdrop)
|
||||
{
|
||||
throw new ArgumentException("Backdrops should be accessed using Item.Backdrops");
|
||||
return BackdropImagePaths.Count > imageIndex;
|
||||
}
|
||||
if (type == ImageType.Screenshot)
|
||||
{
|
||||
throw new ArgumentException("Screenshots should be accessed using Item.Screenshots");
|
||||
var hasScreenshots = this as IHasScreenshots;
|
||||
return hasScreenshots != null && hasScreenshots.ScreenshotImagePaths.Count > imageIndex;
|
||||
}
|
||||
|
||||
return !string.IsNullOrEmpty(this.GetImagePath(type));
|
||||
|
||||
Reference in New Issue
Block a user