Only look for this rip's log file in output directory

Signed-off-by: Katharina Dröge <kate@commandmc.de>
This commit is contained in:
Katharina Dröge
2025-09-24 16:54:24 +02:00
parent bc8b96d956
commit 314660f7d1

View File

@@ -378,8 +378,8 @@ Log files will log the path to tracks relative to this directory.
self.program.metadata)
dirname = os.path.dirname(discName)
if os.path.exists(dirname):
logs = glob.glob(os.path.join(glob.escape(dirname), '*.log'))
if logs:
log_file = discName + '.log'
if os.path.exists(log_file):
msg = ("output directory %s is a finished rip" % dirname)
logger.debug(msg)
raise RuntimeError(msg)