jellyfin/tests/Jellyfin.Naming.Tests/TV
senritsu 4e21b49994 adjust episode path expression to allow digits in series names
The previous expression was too greedy to consume digits, because the hyphen was optional. This lead to incorrect episode numbers for certain series with digits in their names, in those cases each episode was recognized as the same episode number (the digit from the series name).

The rule, which matches most standard  anime filenames, also had a lower priority than one of the Kodi rules, leading to incorrect recognition for absolute numbered episodes with triple digits and higher (first digit was used as season number, rest of digits as episode number). This also resolves one of the TODO test cases.

Additional test cases were added to ensure that both hyphens in different parts of the filename, as well as names without hyphens, still work correctly. All previous test cases still pass.

Unfortunately another TODO (EpisodeNumberTests.cs@L76, Uchuu Senkan Yamato 2199) with the same issue (digits in the series name) could not be trivially fixed in the same change, due to the significantly different formatting. Attempts to resolve this case did not work out for now.
2021-01-17 20:24:23 +01:00
..
AbsoluteEpisodeNumberTests.cs Fix compile warnings in Jellyfin.Naming.Tests 2020-05-13 23:59:19 +01:00
DailyEpisodeTests.cs Add code analyzers to Jellyfin.Naming.Tests and fix resulting warnings 2020-05-14 18:59:10 +01:00
EpisodeNumberTests.cs adjust episode path expression to allow digits in series names 2021-01-17 20:24:23 +01:00
EpisodeNumberWithoutSeasonTests.cs Add code analyzers to Jellyfin.Naming.Tests and fix resulting warnings 2020-05-14 18:59:10 +01:00
EpisodePathParserTest.cs Dummy test case explanation. 2020-11-10 19:28:03 +01:00
EpisodeWithoutSeasonTests.cs Fix compile warnings in Jellyfin.Naming.Tests 2020-05-13 23:59:19 +01:00
MultiEpisodeTests.cs Re-Sharper inspection issues 2020-11-01 11:19:22 +01:00
SeasonFolderTests.cs Rest of tests for Emby.Naming code coverage 2020-11-07 12:30:22 +01:00
SeasonNumberTests.cs Fix compile warnings in Jellyfin.Naming.Tests 2020-05-13 23:59:19 +01:00
SimpleEpisodeTests.cs Rest of tests for Emby.Naming code coverage 2020-11-07 12:30:22 +01:00