diff options
| author | martinek-stepan <68327580+martinek-stepan@users.noreply.github.com> | 2020-11-12 12:54:55 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-12 12:54:55 +0100 |
| commit | 496923719c405cd9b0386f7d31fcb204cdaeb9c4 (patch) | |
| tree | 2aacbb9a7f06dc8bcee9b6692923bb2bc68ddbd9 /Emby.Naming/Video | |
| parent | 195a6261c49f2f1376794a149ddec0a56cbe230a (diff) | |
Apply suggestions from code review
Co-authored-by: BaronGreenback <jimcartlidge@yahoo.co.uk>
Diffstat (limited to 'Emby.Naming/Video')
| -rw-r--r-- | Emby.Naming/Video/VideoListResolver.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Naming/Video/VideoListResolver.cs b/Emby.Naming/Video/VideoListResolver.cs index ee0e4d4659..1e18c4452d 100644 --- a/Emby.Naming/Video/VideoListResolver.cs +++ b/Emby.Naming/Video/VideoListResolver.cs @@ -147,7 +147,7 @@ namespace Emby.Naming.Video } // If there's only one video, accept all trailers - // Be lenient because people use all kinds of mishmash conventions with trailers + // Be lenient because people use all kinds of mishmash conventions with trailers. if (list.Count == 1) { var trailers = remainingFiles @@ -231,7 +231,7 @@ namespace Emby.Naming.Video testFilename = testFilename.Substring(folderName.Length).Trim(); return string.IsNullOrEmpty(testFilename) || testFilename[0] == '-' - || testFilename[0] == '_' + || testFilename[0].Equals( '_') || string.IsNullOrWhiteSpace(Regex.Replace(testFilename, @"\[([^]]*)\]", string.Empty)); } |
