aboutsummaryrefslogtreecommitdiff
path: root/Emby.Naming/TV/SeriesInfo.cs
diff options
context:
space:
mode:
authorFredrik Lindberg <fli@shapeshifter.se>2021-08-26 20:01:56 +0200
committerFredrik Lindberg <fli@shapeshifter.se>2021-09-13 17:59:33 +0200
commitea439c5ccf7a61157544accd60109afc12dbc2d2 (patch)
tree0da06983169048f5136861bfe10dc423090b0f11 /Emby.Naming/TV/SeriesInfo.cs
parente15fea5dade9478d9667399eb0c245917d3e1513 (diff)
Improve series name matching
Add a series path resolver that attempts to extract only the series name from a path that contains more information that just the name.
Diffstat (limited to 'Emby.Naming/TV/SeriesInfo.cs')
-rw-r--r--Emby.Naming/TV/SeriesInfo.cs29
1 files changed, 29 insertions, 0 deletions
diff --git a/Emby.Naming/TV/SeriesInfo.cs b/Emby.Naming/TV/SeriesInfo.cs
new file mode 100644
index 0000000000..5d6cb4bd37
--- /dev/null
+++ b/Emby.Naming/TV/SeriesInfo.cs
@@ -0,0 +1,29 @@
+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; }
+ }
+}