aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/ScheduledTasks/ScheduledTaskWorker.cs
diff options
context:
space:
mode:
authorsenritsu <teh.b4k4@gmail.com>2021-01-17 20:24:23 +0100
committersenritsu <teh.b4k4@gmail.com>2021-01-17 20:24:23 +0100
commit4e21b49994ba031e0716568c38681c3c5b83bbc0 (patch)
treed89066bf9c5a35d010eebc727f1bb7e2d32def82 /Emby.Server.Implementations/ScheduledTasks/ScheduledTaskWorker.cs
parentd8d9d90469f3b8ff8a4ad10bf7bb84ed9b2efee1 (diff)
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.
Diffstat (limited to 'Emby.Server.Implementations/ScheduledTasks/ScheduledTaskWorker.cs')
0 files changed, 0 insertions, 0 deletions