diff options
Diffstat (limited to 'MediaBrowser.Controller/Providers/ItemInfo.cs')
| -rw-r--r-- | MediaBrowser.Controller/Providers/ItemInfo.cs | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/Providers/ItemInfo.cs b/MediaBrowser.Controller/Providers/ItemInfo.cs index 113a7bb8e..78f352057 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 |
