Fixed error when ripping using --keep-going without specifying --output-directory

Added `os.path.basename()` to `skipped_tracks` comparison in
`ImageVerifyTask`. When `OUTPUT_DIRECTORY` is at its default '.'
`./` is prepended to the file path of `index.path`, causing the error.

Signed-off-by: blueblots <63152708+blueblots@users.noreply.github.com>
This commit is contained in:
blueblots
2021-05-16 16:45:35 +01:00
parent 84e4ef6ab8
commit 4d997bc65b

View File

@@ -152,7 +152,7 @@ class ImageVerifyTask(task.MultiSeparateTask):
except KeyError:
logger.debug('Path not found; Checking '
'if %s is a skipped track', index.path)
if index.path in skipped_tracks:
if os.path.basename(index.path) in skipped_tracks:
logger.warning('Missing file %s due to skipped track',
index.path)
continue