2021-05-06 18:39:20 -04:00
|
|
|
#nullable disable
|
|
|
|
|
2020-08-22 15:56:24 -04:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2018-12-27 18:27:57 -05:00
|
|
|
using System;
|
|
|
|
using MediaBrowser.Controller.Entities;
|
|
|
|
using MediaBrowser.Model.Entities;
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Providers
|
|
|
|
{
|
|
|
|
public class ItemInfo
|
|
|
|
{
|
|
|
|
public ItemInfo(BaseItem item)
|
|
|
|
{
|
|
|
|
Path = item.Path;
|
|
|
|
ContainingFolderPath = item.ContainingFolderPath;
|
|
|
|
IsInMixedFolder = item.IsInMixedFolder;
|
|
|
|
|
2021-05-05 07:37:36 -04:00
|
|
|
if (item is Video video)
|
2018-12-27 18:27:57 -05:00
|
|
|
{
|
|
|
|
VideoType = video.VideoType;
|
|
|
|
IsPlaceHolder = video.IsPlaceHolder;
|
|
|
|
}
|
|
|
|
|
|
|
|
ItemType = item.GetType();
|
|
|
|
}
|
|
|
|
|
|
|
|
public Type ItemType { get; set; }
|
2020-03-09 10:05:03 -04:00
|
|
|
|
2018-12-27 18:27:57 -05:00
|
|
|
public string Path { get; set; }
|
2020-03-09 10:05:03 -04:00
|
|
|
|
2018-12-27 18:27:57 -05:00
|
|
|
public string ContainingFolderPath { get; set; }
|
2020-03-09 10:05:03 -04:00
|
|
|
|
2018-12-27 18:27:57 -05:00
|
|
|
public VideoType VideoType { get; set; }
|
2020-03-09 10:05:03 -04:00
|
|
|
|
2018-12-27 18:27:57 -05:00
|
|
|
public bool IsInMixedFolder { get; set; }
|
2020-03-09 10:05:03 -04:00
|
|
|
|
2018-12-27 18:27:57 -05:00
|
|
|
public bool IsPlaceHolder { get; set; }
|
|
|
|
}
|
2019-01-13 14:30:58 -05:00
|
|
|
}
|