diff options
| author | cvium <clausvium@gmail.com> | 2021-12-10 14:34:46 +0100 |
|---|---|---|
| committer | cvium <clausvium@gmail.com> | 2021-12-10 14:34:46 +0100 |
| commit | 681bfbd535b063f6d4e3c61bf0bc250d4eee9304 (patch) | |
| tree | b20b6303f7cfdfded7a6f11e35d4085dd877bdfe | |
| parent | 220443eca1dfef08a2a0e000ac5963e18af073fc (diff) | |
Remove duplication
| -rw-r--r-- | Emby.Naming/Video/ExtraResolver.cs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Emby.Naming/Video/ExtraResolver.cs b/Emby.Naming/Video/ExtraResolver.cs index cd7a6c0d7..8dab084f6 100644 --- a/Emby.Naming/Video/ExtraResolver.cs +++ b/Emby.Naming/Video/ExtraResolver.cs @@ -98,7 +98,6 @@ namespace Emby.Naming.Video { var parentDir = videoInfo.IsDirectory ? videoInfo.Path : Path.GetDirectoryName(videoInfo.Path.AsSpan()); - var trimmedFileName = TrimFilenameDelimiters(videoInfo.Name, videoFlagDelimiters); var trimmedFileNameWithoutExtension = TrimFilenameDelimiters(videoInfo.FileNameWithoutExtension, videoFlagDelimiters); var trimmedVideoInfoName = TrimFilenameDelimiters(videoInfo.Name, videoFlagDelimiters); @@ -117,7 +116,6 @@ namespace Emby.Naming.Video // first check filenames bool isValid = StartsWith(trimmedCurrentFileName, trimmedFileNameWithoutExtension) - || (StartsWith(trimmedCurrentFileName, trimmedFileName) && currentFile.Year == videoInfo.Year) || (StartsWith(trimmedCurrentFileName, trimmedVideoInfoName) && currentFile.Year == videoInfo.Year); // then by directory |
