|
|
|
using System;
|
|
|
|
using MediaBrowser.Controller.Entities;
|
|
|
|
using MediaBrowser.Model.Entities;
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Providers
|
|
|
|
{
|
|
|
|
public class ItemInfo
|
|
|
|
{
|
|
|
|
public ItemInfo(IHasMetadata item)
|
|
|
|
{
|
|
|
|
Path = item.Path;
|
|
|
|
ContainingFolderPath = item.ContainingFolderPath;
|
|
|
|
IsInMixedFolder = item.DetectIsInMixedFolder();
|
|
|
|
|
|
|
|
var video = item as Video;
|
|
|
|
if (video != null)
|
|
|
|
{
|
|
|
|
VideoType = video.VideoType;
|
|
|
|
IsPlaceHolder = video.IsPlaceHolder;
|
|
|
|
}
|
|
|
|
|
|
|
|
ItemType = item.GetType();
|
|
|
|
}
|
|
|
|
|
|
|
|
public Type ItemType { get; set; }
|
|
|
|
public string Path { get; set; }
|
|
|
|
public string ContainingFolderPath { get; set; }
|
|
|
|
public VideoType VideoType { get; set; }
|
|
|
|
public bool IsInMixedFolder { get; set; }
|
|
|
|
public bool IsPlaceHolder { get; set; }
|
|
|
|
}
|
|
|
|
}
|