diff options
| author | Bond_009 <Bond.009@outlook.com> | 2020-02-08 21:49:28 +0100 |
|---|---|---|
| committer | Bond_009 <Bond.009@outlook.com> | 2020-02-08 21:49:28 +0100 |
| commit | f96bc23c4fb958c44c17a8832ec13fad37f48f1c (patch) | |
| tree | e56d5c35677a6d3890b426d474fe9e3e729d5c7e /Emby.Naming/Audio/AlbumParser.cs | |
| parent | 91707f13a877dd4e8b70d0857f0343215be76758 (diff) | |
| parent | 77428d338db09c4f3df3121281d952851a8a89ec (diff) | |
Merge branch 'master' into nullable2
Diffstat (limited to 'Emby.Naming/Audio/AlbumParser.cs')
| -rw-r--r-- | Emby.Naming/Audio/AlbumParser.cs | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/Emby.Naming/Audio/AlbumParser.cs b/Emby.Naming/Audio/AlbumParser.cs index 4975b8e19..b807816eb 100644 --- a/Emby.Naming/Audio/AlbumParser.cs +++ b/Emby.Naming/Audio/AlbumParser.cs @@ -19,15 +19,13 @@ namespace Emby.Naming.Audio _options = options; } - public MultiPartResult ParseMultiPart(string path) + public bool IsMultiPart(string path) { - var result = new MultiPartResult(); - var filename = Path.GetFileName(path); if (string.IsNullOrEmpty(filename)) { - return result; + return false; } // TODO: Move this logic into options object @@ -57,12 +55,11 @@ namespace Emby.Naming.Audio if (int.TryParse(tmp, NumberStyles.Integer, CultureInfo.InvariantCulture, out _)) { - result.IsMultiPart = true; - break; + return true; } } - return result; + return false; } } } |
