2018-09-12 10:26:21 -07:00
|
|
|
namespace Emby.Naming.Video
|
|
|
|
{
|
|
|
|
/// <summary>
|
2019-10-25 03:47:20 -07:00
|
|
|
/// Represents a single video file.
|
2018-09-12 10:26:21 -07:00
|
|
|
/// </summary>
|
|
|
|
public class VideoFileInfo
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the path.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The path.</value>
|
|
|
|
public string Path { get; set; }
|
2019-05-10 11:37:42 -07:00
|
|
|
|
2018-09-12 10:26:21 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the container.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The container.</value>
|
|
|
|
public string Container { get; set; }
|
2019-05-10 11:37:42 -07:00
|
|
|
|
2018-09-12 10:26:21 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the name.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The name.</value>
|
|
|
|
public string Name { get; set; }
|
2019-05-10 11:37:42 -07:00
|
|
|
|
2018-09-12 10:26:21 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the year.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The year.</value>
|
|
|
|
public int? Year { get; set; }
|
2019-05-10 11:37:42 -07:00
|
|
|
|
2018-09-12 10:26:21 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the type of the extra, e.g. trailer, theme song, behing the scenes, etc.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The type of the extra.</value>
|
|
|
|
public string ExtraType { get; set; }
|
2019-05-10 11:37:42 -07:00
|
|
|
|
2018-09-12 10:26:21 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the extra rule.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The extra rule.</value>
|
|
|
|
public ExtraRule ExtraRule { get; set; }
|
2019-05-10 11:37:42 -07:00
|
|
|
|
2018-09-12 10:26:21 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the format3 d.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The format3 d.</value>
|
|
|
|
public string Format3D { get; set; }
|
2019-05-10 11:37:42 -07:00
|
|
|
|
2018-09-12 10:26:21 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets a value indicating whether [is3 d].
|
|
|
|
/// </summary>
|
|
|
|
/// <value><c>true</c> if [is3 d]; otherwise, <c>false</c>.</value>
|
|
|
|
public bool Is3D { get; set; }
|
2019-05-10 11:37:42 -07:00
|
|
|
|
2018-09-12 10:26:21 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets a value indicating whether this instance is stub.
|
|
|
|
/// </summary>
|
|
|
|
/// <value><c>true</c> if this instance is stub; otherwise, <c>false</c>.</value>
|
|
|
|
public bool IsStub { get; set; }
|
2019-05-10 11:37:42 -07:00
|
|
|
|
2018-09-12 10:26:21 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the type of the stub.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The type of the stub.</value>
|
2019-01-07 16:27:46 -07:00
|
|
|
public string StubType { get; set; }
|
2019-05-10 11:37:42 -07:00
|
|
|
|
2018-09-12 10:26:21 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the type.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The type.</value>
|
|
|
|
public bool IsDirectory { get; set; }
|
2019-05-10 11:37:42 -07:00
|
|
|
|
2018-09-12 10:26:21 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Gets the file name without extension.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The file name without extension.</value>
|
2019-01-13 13:31:14 -07:00
|
|
|
public string FileNameWithoutExtension => !IsDirectory ? System.IO.Path.GetFileNameWithoutExtension(Path) : System.IO.Path.GetFileName(Path);
|
2018-09-12 10:26:21 -07:00
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
{
|
|
|
|
// Makes debugging easier
|
|
|
|
return Name ?? base.ToString();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|