commit 8505138d2de4ab333d63a62c2185c415857d844b
parent d7eea673c19fbc83822d599f9578896c54e951da
Author: gearsix <gearsix@tuta.io>
Date: Wed, 7 Dec 2022 00:31:55 +0000
feature: another improvement to Timestamp regex, caught - X -
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sya.py b/sya.py
@@ -11,7 +11,7 @@ Version = 'v1.0.1'
UnsafeFilenameChars = re.compile('[/\\?%*:|\"<>\x7F\x00-\x1F]')
TrackNum = re.compile('(?:\d+.? ?-? ?)')
-Timestamp = re.compile('(?:[\t ]+?)?[\[\(]+?((\d+[:.])+(\d+))[\]\)]?(?:[\t ]+)?')
+Timestamp = re.compile('(?: - )?(?:[\t ]+)?(?:[\[\(]+)?((\d+[:.])+(\d+))(?:[\]\)])?(?:[\t ]+)?(?: - )?')
class TracklistItem:
def __init__(self, timestamp, title):