From 92e00ed66738ec7f7d567c6d4ec37db12bb2e6f2 Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Sat, 10 Feb 2024 12:42:17 +0000 Subject: [PATCH] Fix OGM Chapter Regex patterns in Chapters class --- devine/core/tracks/chapters.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devine/core/tracks/chapters.py b/devine/core/tracks/chapters.py index 9b2a32a..5a2aeb0 100644 --- a/devine/core/tracks/chapters.py +++ b/devine/core/tracks/chapters.py @@ -10,8 +10,8 @@ from sortedcontainers import SortedKeyList from devine.core.tracks import Chapter -OGM_SIMPLE_LINE_1_FORMAT = re.compile(r"^CHAPTER(?P\d+)=(?P[\d\\.]+)$") -OGM_SIMPLE_LINE_2_FORMAT = re.compile(r"^CHAPTER(?P\d+)NAME=(?P[\d\\.]+)$") +OGM_SIMPLE_LINE_1_FORMAT = re.compile(r"^CHAPTER(?P\d+)=(?P\d{2,}:\d{2}:\d{2}\.\d{3})$") +OGM_SIMPLE_LINE_2_FORMAT = re.compile(r"^CHAPTER(?P\d+)NAME=(?P.*)$") class Chapters(SortedKeyList, ABC):