Merge pull request #656 from CommandMC/fix/finished-rip-detection

Only look for this rip's log file in output directory
This commit is contained in:
Merlijn Wajer
2026-02-07 11:01:12 +01:00
committed by GitHub

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)