aboutsummaryrefslogtreecommitdiff
path: root/Emby.Naming/AudioBook/AudioBookFilePathParser.cs
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2020-06-22 20:23:06 -0600
committercrobibero <cody@robibe.ro>2020-06-22 20:23:06 -0600
commitf4d8e0e20cca81b68919ac8d242fa793612d8c85 (patch)
treefe995b8cde09125bebc7cd250693599c26faf2a4 /Emby.Naming/AudioBook/AudioBookFilePathParser.cs
parent3d87c4c1b6bca920f444b4a16a99553d0ff6879e (diff)
parent0be10db5a5ea5f284b310e55ee572016a177decd (diff)
Merge remote-tracking branch 'upstream/master' into easypassword
Diffstat (limited to 'Emby.Naming/AudioBook/AudioBookFilePathParser.cs')
-rw-r--r--Emby.Naming/AudioBook/AudioBookFilePathParser.cs1
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);