diff options
Diffstat (limited to 'MediaBrowser.Controller/Entities/Photo.cs')
| -rw-r--r-- | MediaBrowser.Controller/Entities/Photo.cs | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/Entities/Photo.cs b/MediaBrowser.Controller/Entities/Photo.cs index aa9e63791..1f38de9a3 100644 --- a/MediaBrowser.Controller/Entities/Photo.cs +++ b/MediaBrowser.Controller/Entities/Photo.cs @@ -1,5 +1,8 @@ -using MediaBrowser.Model.Drawing; +using MediaBrowser.Model.Configuration; +using MediaBrowser.Model.Drawing; using System.Collections.Generic; +using System.Linq; +using System.Runtime.Serialization; namespace MediaBrowser.Controller.Entities { @@ -14,6 +17,14 @@ namespace MediaBrowser.Controller.Entities Taglines = new List<string>(); } + public override bool SupportsLocalMetadata + { + get + { + return false; + } + } + public override string MediaType { get @@ -22,6 +33,15 @@ namespace MediaBrowser.Controller.Entities } } + [IgnoreDataMember] + public override Folder LatestItemsIndexContainer + { + get + { + return Parents.OfType<PhotoAlbum>().FirstOrDefault(); + } + } + public int? Width { get; set; } public int? Height { get; set; } public string CameraMake { get; set; } @@ -32,5 +52,10 @@ namespace MediaBrowser.Controller.Entities public ImageOrientation? Orientation { get; set; } public double? Aperture { get; set; } public double? ShutterSpeed { get; set; } + + protected override bool GetBlockUnratedValue(UserConfiguration config) + { + return config.BlockUnratedItems.Contains(UnratedItem.Other); + } } } |
