mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 05:47:14 -04:00
Add a series path resolver that attempts to extract only the series name from a path that contains more information that just the name.
30 lines
763 B
C#
30 lines
763 B
C#
namespace Emby.Naming.TV
|
|
{
|
|
/// <summary>
|
|
/// Holder object for Series information.
|
|
/// </summary>
|
|
public class SeriesInfo
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="SeriesInfo"/> class.
|
|
/// </summary>
|
|
/// <param name="path">Path to the file.</param>
|
|
public SeriesInfo(string path)
|
|
{
|
|
Path = path;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the path.
|
|
/// </summary>
|
|
/// <value>The path.</value>
|
|
public string Path { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the name of the series.
|
|
/// </summary>
|
|
/// <value>The name of the series.</value>
|
|
public string? Name { get; set; }
|
|
}
|
|
}
|