diff options
| author | telans <telans@protonmail.com> | 2020-06-16 09:43:52 +1200 |
|---|---|---|
| committer | telans <telans@protonmail.com> | 2020-06-16 16:11:30 +1200 |
| commit | 247f9c61e60ef774675cb4d6d1734d2ccdc6ee7a (patch) | |
| tree | 9e3de289c619b1a31221b55058a77ac393ba648c /Emby.Naming/AudioBook/AudioBookFilePathParser.cs | |
| parent | 25f8e596cb922fc7d98f934777b1a9279c4269a4 (diff) | |
fix SA1513/SA1516
Diffstat (limited to 'Emby.Naming/AudioBook/AudioBookFilePathParser.cs')
| -rw-r--r-- | Emby.Naming/AudioBook/AudioBookFilePathParser.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Emby.Naming/AudioBook/AudioBookFilePathParser.cs b/Emby.Naming/AudioBook/AudioBookFilePathParser.cs index 5494df9d6..3c874c62c 100644 --- a/Emby.Naming/AudioBook/AudioBookFilePathParser.cs +++ b/Emby.Naming/AudioBook/AudioBookFilePathParser.cs @@ -64,6 +64,7 @@ namespace Emby.Naming.AudioBook { result.ChapterNumber = int.Parse(matches[0].Groups[0].Value); } + if (matches.Count > 1) { result.PartNumber = int.Parse(matches[matches.Count - 1].Groups[0].Value); |
