Right now, a movie Name `Iron Man Multi 1080p.mkv` will be searched as
`Iron
Man Multi` leading to no result.
The cleaning regex was containing multi but it looks like a typo joined
`multi` and `subs` in the same term.
Co-authored-by: Xavier-Do <xavier.dolle@gmail.com>
"Digital Media" is a common 'disk'-splitting prefix, more so with recent "digital" music releases as physical cd's/disks aren't used.
In particular, it is part of Lidarr's {Medium Format} tag for automatic archive sorting. So it would be good to see this reflected into Jellyfin.
I'm not familiar with the code-base, or whether a ' ' character is valid within this context.
Fix to allow for episode numbering over 999 in certain scenarios
(cherry picked from commit 3ea67374aecdeab6f90b66fecdaf6ee4e510675d)
Signed-off-by: Joshua Boniface <joshua@boniface.me>
Remove mp2 from video file extensions
(cherry picked from commit cba6a4e3f3331248a625ba671748346c292e18c3)
Signed-off-by: Joshua Boniface <joshua@boniface.me>
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.