Backport pull request #18061 from jellyfin/release-12.z

Skip optimistic expressions when parsing series names

Original-merge: ca66e5fc5b

Merged-by: crobibero <cody@robibe.ro>

Backported-by: Cody Robibero <cody@robibe.ro>
This commit is contained in:
panko authored and Cody Robibero committed 2026-09-27 16:30:37 -04:00
1 parent 4e73688f7d
commit faef2fa658
3 files changed
+31 -1

No files matched your search

@@ -25,5 +25,15 @@ namespace Jellyfin.Naming.Tests.TV
Assert.Equal(name, res.SeriesName);
Assert.True(res.Success);
}
[Theory]
[InlineData("/media/Jujutsu Kaisen (BD_1280x720)")]
[InlineData("/media/Show.1920x1080.BluRay")]
public void SeriesPathParser_ResolutionPatternIsNotASeries(string path)
{
var res = SeriesPathParser.Parse(_namingOptions, path);
Assert.False(res.Success);
}
}
}
@@ -25,6 +25,8 @@ namespace Jellyfin.Naming.Tests.TV
[InlineData("Marvel's.Agents.of.S.H.I.E.L.D.", "Marvel's Agents of S.H.I.E.L.D.")]
[InlineData("The.Show.S.H.O.W", "The Show S.H.O.W")]
[InlineData("/some/path/Dawson's Creek", "Dawson's Creek")]
[InlineData("/media/Bunker.S03.1080p.PULSAR.WEB-DL.DDP5.1.Atmos.H.264-showWEB", "Bunker")]
[InlineData("/media/Outer.Colony.S01.1080p.NOVA.WEB-DL.DDP5.1.H.264.HUN.ENG-QUASAR", "Outer Colony")]
public void SeriesResolverResolveTest(string path, string name)
{
var res = SeriesResolver.Resolve(_namingOptions, path);