diff options
| author | SenorSmartyPants <senorsmartypants@gmail.com> | 2023-02-26 13:32:46 -0600 |
|---|---|---|
| committer | SenorSmartyPants <senorsmartypants@gmail.com> | 2023-03-09 17:44:12 -0600 |
| commit | b96420b7865538439c6a96305d70fa4f16dfd591 (patch) | |
| tree | 4cf191c2b08ef343fca05cacef2afdba93031b2f /Emby.Naming/Common | |
| parent | 6b0135d03b757600bf9066d9ddd9bc423b470192 (diff) | |
Clean Extra Names
- Adds regular expression to CleanStrings to remove suffix style extra naming from the name presented in JF.
- Override Resolve for Extras to enable parsename
- remove exclusion on parsename of extratypes
Diffstat (limited to 'Emby.Naming/Common')
| -rw-r--r-- | Emby.Naming/Common/NamingOptions.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Emby.Naming/Common/NamingOptions.cs b/Emby.Naming/Common/NamingOptions.cs index e9161a6b7..1406c6443 100644 --- a/Emby.Naming/Common/NamingOptions.cs +++ b/Emby.Naming/Common/NamingOptions.cs @@ -157,7 +157,8 @@ namespace Emby.Naming.Common @"^(?<cleaned>.+?)(\[.*\])", @"^\s*(?<cleaned>.+?)\WE[0-9]+(-|~)E?[0-9]+(\W|$)", @"^\s*\[[^\]]+\](?!\.\w+$)\s*(?<cleaned>.+)", - @"^\s*(?<cleaned>.+?)\s+-\s+[0-9]+\s*$" + @"^\s*(?<cleaned>.+?)\s+-\s+[0-9]+\s*$", + @"^\s*(?<cleaned>.+?)(([-._ ](trailer|sample))|-(scene|clip|behindthescenes|deleted|deletedscene|featurette|short|interview|other|extra))$" }; SubtitleFileExtensions = new[] |
