aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-05-15 11:46:20 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-05-15 11:46:20 -0400
commitd2949d6e0375f4bc65566b96f3f832249ae5cedd (patch)
tree468b22f21a6db58dcbd02657084177643b4986c4 /MediaBrowser.Controller
parent2189851f11e512228d41c6ec5a60b323389d1566 (diff)
support video_ts.nfo
Diffstat (limited to 'MediaBrowser.Controller')
-rw-r--r--MediaBrowser.Controller/Providers/ItemInfo.cs23
1 files changed, 22 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/Providers/ItemInfo.cs b/MediaBrowser.Controller/Providers/ItemInfo.cs
index 113a7bb8ec..78f352057b 100644
--- a/MediaBrowser.Controller/Providers/ItemInfo.cs
+++ b/MediaBrowser.Controller/Providers/ItemInfo.cs
@@ -1,9 +1,30 @@
+using MediaBrowser.Controller.Entities;
+using MediaBrowser.Model.Entities;
+
namespace MediaBrowser.Controller.Providers
{
public class ItemInfo
{
- public string Path { get; set; }
+ public ItemInfo()
+ {
+ }
+
+ public ItemInfo(IHasMetadata item)
+ {
+ Path = item.Path;
+ ContainingFolderPath = item.ContainingFolderPath;
+ IsInMixedFolder = item.IsInMixedFolder;
+ var video = item as Video;
+ if (video != null)
+ {
+ VideoType = video.VideoType;
+ }
+ }
+
+ public string Path { get; set; }
+ public string ContainingFolderPath { get; set; }
+ public VideoType VideoType { get; set; }
public bool IsInMixedFolder { get; set; }
}
} \ No newline at end of file