support series that are numeric only

updates SeriesResolver to handle series names that only contain numbers such as 1923.
This commit is contained in:
Cody Engel
2025-09-20 14:04:00 -06:00
parent 4246825239
commit da31d0c6a6
2 changed files with 23 additions and 0 deletions

View File

@@ -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);