From d2949d6e0375f4bc65566b96f3f832249ae5cedd Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 15 May 2015 11:46:20 -0400 Subject: support video_ts.nfo --- MediaBrowser.Controller/Providers/ItemInfo.cs | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'MediaBrowser.Controller') 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 -- cgit v1.2.3