aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Entities/Video.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-07-16 14:47:05 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-07-16 14:47:05 -0400
commit2c22db8b8d42e42a0575e0c2d9366f47f9ee7a24 (patch)
tree5160543394f69112738f78785c776c24a4071c90 /MediaBrowser.Controller/Entities/Video.cs
parent27c644e6c8e215efe47e16bf49db0aec619409bc (diff)
Added an adult video entity
Diffstat (limited to 'MediaBrowser.Controller/Entities/Video.cs')
-rw-r--r--MediaBrowser.Controller/Entities/Video.cs25
1 files changed, 25 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Entities/Video.cs b/MediaBrowser.Controller/Entities/Video.cs
index 78f4e3fc2..67648ecc8 100644
--- a/MediaBrowser.Controller/Entities/Video.cs
+++ b/MediaBrowser.Controller/Entities/Video.cs
@@ -66,6 +66,31 @@ namespace MediaBrowser.Controller.Entities
}
/// <summary>
+ /// Should be overridden to return the proper folder where metadata lives
+ /// </summary>
+ /// <value>The meta location.</value>
+ [IgnoreDataMember]
+ public override string MetaLocation
+ {
+ get
+ {
+ return VideoType == VideoType.VideoFile || VideoType == VideoType.Iso || IsMultiPart ? System.IO.Path.GetDirectoryName(Path) : Path;
+ }
+ }
+
+ /// <summary>
+ /// Needed because the resolver stops at the movie folder and we find the video inside.
+ /// </summary>
+ /// <value><c>true</c> if [use parent path to create resolve args]; otherwise, <c>false</c>.</value>
+ protected override bool UseParentPathToCreateResolveArgs
+ {
+ get
+ {
+ return VideoType == VideoType.VideoFile || VideoType == VideoType.Iso || IsMultiPart;
+ }
+ }
+
+ /// <summary>
/// Gets the playable stream files.
/// </summary>
/// <param name="rootPath">The root path.</param>