From abf9a971e7a2f63fc2f021534810e01209c1782a Mon Sep 17 00:00:00 2001 From: Andreas Oberritter Date: Sun, 22 Sep 2019 14:21:50 +0200 Subject: [PATCH] Fix ripping discs with less than ten tracks Output lines of cdrdao for single digit track numbers start with a whitespace character. Broken since #345 was merged. Signed-off-by: Andreas Oberritter --- whipper/program/cdrdao.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whipper/program/cdrdao.py b/whipper/program/cdrdao.py index f59ed383..9b36adab 100644 --- a/whipper/program/cdrdao.py +++ b/whipper/program/cdrdao.py @@ -19,7 +19,7 @@ _CRC_RE = re.compile( r"Found (?P[0-9]*) Q sub-channels with CRC errors") _BEGIN_CDRDAO_RE = re.compile(r"-" * 60) -_LAST_TRACK_RE = re.compile(r"^(?P[0-9]*)") +_LAST_TRACK_RE = re.compile(r"^[ ]?(?P[0-9]*)") _LEADOUT_RE = re.compile( r"^Leadout AUDIO\s*[0-9]\s*[0-9]*:[0-9]*:[0-9]*\([0-9]*\)")