diff options
| author | Bond-009 <bond.009@outlook.com> | 2023-02-19 11:55:29 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-19 11:55:29 +0100 |
| commit | dd3e74ca0fd5b5b96231e9891077d20b0220caa6 (patch) | |
| tree | b87d2088963e048aaac7e9a0c93c9144562ca663 /Emby.Naming | |
| parent | 6eb35d4fd36e06ec4417a039d14864702e11115c (diff) | |
| parent | 40a1e1924aba735c94a6575e225b8e63524f9714 (diff) | |
Merge pull request #9343 from Lenart12/master
Diffstat (limited to 'Emby.Naming')
| -rw-r--r-- | Emby.Naming/Common/NamingOptions.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Emby.Naming/Common/NamingOptions.cs b/Emby.Naming/Common/NamingOptions.cs index c16a71e02..e9161a6b7 100644 --- a/Emby.Naming/Common/NamingOptions.cs +++ b/Emby.Naming/Common/NamingOptions.cs @@ -338,7 +338,15 @@ namespace Emby.Naming.Common } }, - // This isn't a Kodi naming rule, but the expression below causes false positives, + // This isn't a Kodi naming rule, but the expression below causes false episode numbers for + // Title Season X Episode X naming schemes. + // "Series Season X Episode X - Title.avi", "Series S03 E09.avi", "s3 e9 - Title.avi" + new EpisodeExpression(@".*[\\\/]((?<seriesname>[^\\/]+?)\s)?[Ss](?:eason)?\s*(?<seasonnumber>[0-9]+)\s+[Ee](?:pisode)?\s*(?<epnumber>[0-9]+).*$") + { + IsNamed = true + }, + + // Not a Kodi rule as well, but the expression below also causes false positives, // so we make sure this one gets tested first. // "Foo Bar 889" new EpisodeExpression(@".*[\\\/](?![Ee]pisode)(?<seriesname>[\w\s]+?)\s(?<epnumber>[0-9]{1,4})(-(?<endingepnumber>[0-9]{2,4}))*[^\\\/x]*$") |
