From 2c22db8b8d42e42a0575e0c2d9366f47f9ee7a24 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 16 Jul 2013 14:47:05 -0400 Subject: Added an adult video entity --- MediaBrowser.Controller/Entities/Video.cs | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'MediaBrowser.Controller/Entities/Video.cs') diff --git a/MediaBrowser.Controller/Entities/Video.cs b/MediaBrowser.Controller/Entities/Video.cs index 78f4e3fc24..67648ecc89 100644 --- a/MediaBrowser.Controller/Entities/Video.cs +++ b/MediaBrowser.Controller/Entities/Video.cs @@ -65,6 +65,31 @@ namespace MediaBrowser.Controller.Entities return GetPlayableStreamFiles(Path); } + /// + /// Should be overridden to return the proper folder where metadata lives + /// + /// The meta location. + [IgnoreDataMember] + public override string MetaLocation + { + get + { + return VideoType == VideoType.VideoFile || VideoType == VideoType.Iso || IsMultiPart ? System.IO.Path.GetDirectoryName(Path) : Path; + } + } + + /// + /// Needed because the resolver stops at the movie folder and we find the video inside. + /// + /// true if [use parent path to create resolve args]; otherwise, false. + protected override bool UseParentPathToCreateResolveArgs + { + get + { + return VideoType == VideoType.VideoFile || VideoType == VideoType.Iso || IsMultiPart; + } + } + /// /// Gets the playable stream files. /// -- cgit v1.2.3