aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCody Engel <cengel815@gmail.com>2025-09-20 14:04:00 -0600
committerCody Engel <cengel815@gmail.com>2025-09-20 14:04:00 -0600
commitda31d0c6a61ff0d908ad3c9ddcfa42a055f7ef6f (patch)
tree1ece589f80b7ce0bc704f8dfae007296aee55eb5 /tests
parent424682523961f1a51fdebcde4f64849b75b9c3af (diff)
support series that are numeric only
updates SeriesResolver to handle series names that only contain numbers such as 1923.
Diffstat (limited to 'tests')
-rw-r--r--tests/Jellyfin.Naming.Tests/TV/SeriesResolverTests.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/Jellyfin.Naming.Tests/TV/SeriesResolverTests.cs b/tests/Jellyfin.Naming.Tests/TV/SeriesResolverTests.cs
index 84758c9c3..84311b0e2 100644
--- a/tests/Jellyfin.Naming.Tests/TV/SeriesResolverTests.cs
+++ b/tests/Jellyfin.Naming.Tests/TV/SeriesResolverTests.cs
@@ -19,6 +19,8 @@ namespace Jellyfin.Naming.Tests.TV
[InlineData("/some/path/The Show", "The Show")]
[InlineData("/some/path/The Show s02e10 720p hdtv", "The Show")]
[InlineData("/some/path/The Show s02e10 the episode 720p hdtv", "The Show")]
+ [InlineData("/some/path/1923 (2022)", "1923")]
+ [InlineData("/some/path/-1923 (2022)", "1923")]
public void SeriesResolverResolveTest(string path, string name)
{
var res = SeriesResolver.Resolve(_namingOptions, path);