diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-12-08 23:57:18 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-12-08 23:57:18 -0500 |
| commit | 4548e6598def249d4b0fe4f4f12e2fa16d4f1e3c (patch) | |
| tree | 781febcb168647c37f027e7893adbb1b9c3dbfc1 /MediaBrowser.Controller/Entities/Folder.cs | |
| parent | 5eb44c42c586af34dd16efc76240d0d6c8e02069 (diff) | |
support dvd without video_ts folder
Diffstat (limited to 'MediaBrowser.Controller/Entities/Folder.cs')
| -rw-r--r-- | MediaBrowser.Controller/Entities/Folder.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Entities/Folder.cs b/MediaBrowser.Controller/Entities/Folder.cs index 288972d7c..87ad9c380 100644 --- a/MediaBrowser.Controller/Entities/Folder.cs +++ b/MediaBrowser.Controller/Entities/Folder.cs @@ -58,6 +58,20 @@ namespace MediaBrowser.Controller.Entities } } + [IgnoreDataMember] + public override string FileNameWithoutExtension + { + get + { + if (LocationType == LocationType.FileSystem) + { + return System.IO.Path.GetFileName(Path); + } + + return null; + } + } + /// <summary> /// Gets or sets a value indicating whether this instance is physical root. /// </summary> |
