diff --git a/src/audio_scanner.py b/src/audio_scanner.py index dfda494..f4cd450 100644 --- a/src/audio_scanner.py +++ b/src/audio_scanner.py @@ -17,7 +17,7 @@ def find_audios(index): res = [] for f in listdir(AUDIO_DIR): full_file = join(AUDIO_DIR, f) - re_date_match = re.match(r"^%03d_(\d{4}-[01]\d-[0-3]\d).mp3$" % index, f) + re_date_match = re.match(r"^%03d[_ ](\d{4}-[01]\d-[0-3]\d).mp3$" % index, f) if not isfile(full_file) or not re_date_match: continue date = datetime.strptime(re_date_match.group(1), "%Y-%m-%d")