diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-01-05 01:08:22 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-01-05 01:08:22 -0500 |
| commit | 1ed03b0bb328e4d5c48c560c06aab55b4c75cd46 (patch) | |
| tree | 80e1f979c71f49e9c5bc9f6a155cc5319c58c1b0 /MediaBrowser.Controller/Entities/BaseItem.cs | |
| parent | d957c0da048ed55814a3a1c397bcbc13799acd86 (diff) | |
added more images to search output
Diffstat (limited to 'MediaBrowser.Controller/Entities/BaseItem.cs')
| -rw-r--r-- | MediaBrowser.Controller/Entities/BaseItem.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.cs index dbda4a243..dcee4bae7 100644 --- a/MediaBrowser.Controller/Entities/BaseItem.cs +++ b/MediaBrowser.Controller/Entities/BaseItem.cs @@ -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)); |
