added more images to search output

This commit is contained in:
Luke Pulverenti
2014-01-05 01:08:22 -05:00
parent d957c0da04
commit 1ed03b0bb3
4 changed files with 78 additions and 5 deletions

View File

@@ -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));