diff options
| author | Bond_009 <bond.009@outlook.com> | 2020-04-19 18:27:07 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2020-04-19 18:27:07 +0200 |
| commit | fc3e2baccc8c32171df655043feb7afae6bab34c (patch) | |
| tree | 0fb3e15a38acf97c2550d28acac0ac567a9e2689 /Emby.Naming | |
| parent | d99536e99fe7e8d204ef93db39e519afbbfdad0a (diff) | |
Address comments
Diffstat (limited to 'Emby.Naming')
| -rw-r--r-- | Emby.Naming/Audio/AlbumParser.cs | 4 | ||||
| -rw-r--r-- | Emby.Naming/Subtitles/SubtitleParser.cs | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/Emby.Naming/Audio/AlbumParser.cs b/Emby.Naming/Audio/AlbumParser.cs index 23ff8c3fa..b63be3a64 100644 --- a/Emby.Naming/Audio/AlbumParser.cs +++ b/Emby.Naming/Audio/AlbumParser.cs @@ -4,7 +4,6 @@ using System; using System.Globalization; using System.IO; -using System.Linq; using System.Text.RegularExpressions; using Emby.Naming.Common; @@ -22,8 +21,7 @@ namespace Emby.Naming.Audio public bool IsMultiPart(string path) { var filename = Path.GetFileName(path); - - if (path.Length == 0) + if (filename.Length == 0) { return false; } diff --git a/Emby.Naming/Subtitles/SubtitleParser.cs b/Emby.Naming/Subtitles/SubtitleParser.cs index 542584bee..24e59f90a 100644 --- a/Emby.Naming/Subtitles/SubtitleParser.cs +++ b/Emby.Naming/Subtitles/SubtitleParser.cs @@ -21,7 +21,7 @@ namespace Emby.Naming.Subtitles { if (path.Length == 0) { - throw new ArgumentException("String can't be empty.", nameof(path)); + throw new ArgumentException("File path can't be empty.", nameof(path)); } var extension = Path.GetExtension(path); |
