Skip to content

Add option to keep unverified tracks. Fixes #612.#649

Open
leper wants to merge 1 commit intowhipper-team:developfrom
leper:keep_unverified
Open

Add option to keep unverified tracks. Fixes #612.#649
leper wants to merge 1 commit intowhipper-team:developfrom
leper:keep_unverified

Conversation

@leper
Copy link
Copy Markdown

@leper leper commented Jul 31, 2025

Add a -u/--keep-unverified option that keeps the most recent attempt of ripping a track that failed verification.

The logging might be inconsistent in that the unverifiable track is mentioned as bein skipped in some log messages.

Copy link
Copy Markdown

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💖 Thanks for opening your first pull request here! 💖

@MerlijnWajer
Copy link
Copy Markdown
Collaborator

Apologies for the delay. When you write:

The logging might be inconsistent in that the unverifiable track is mentioned as bein skipped in some log messages.

Can you confirm that the final rip log does contain the track and indicates that it wasn't verified?

@leper leper force-pushed the keep_unverified branch 3 times, most recently from c0e7e8e to 0b12802 Compare February 7, 2026 21:39
@leper
Copy link
Copy Markdown
Author

leper commented Feb 7, 2026

Apologies for the delay. When you write:

The logging might be inconsistent in that the unverifiable track is mentioned as bein skipped in some log messages.

Can you confirm that the final rip log does contain the track and indicates that it wasn't verified?
It lists the unverified tracks as skipped, mainly because AFAIR passing through another set of "not accurately ripped" files through some layers would have required some larger changes.

Sample log for one disc I used that on (which has some "copy protection", I just found this one quickly)

Tracks:
  1:
    Filename: <snip>/Death on the Road/Iron Maiden - Wildest Dreams.flac
    Peak level: 0.0
    Pre-emphasis:
    AccurateRip v1:
      Result: Track not present in AccurateRip database
    AccurateRip v2:
      Result: Track not present in AccurateRip database
    Status: Track not ripped (skipped)

but the (unverified) track still exists.

@MerlijnWajer
Copy link
Copy Markdown
Collaborator

Thanks for checking. I think we'll probably want the log to indicate something else if the final result is that the track is ripped, otherwise I think the log will be inconsistent with the result.

@leper
Copy link
Copy Markdown
Author

leper commented Feb 7, 2026

Understandable, took a look and have some WIP (just pushed) that might just handle this better, but I still need to test this (most likely next week).

Add a -u/--keep-unverified option that keeps the most recent attempt
of ripping a track that failed verification.

List the status of such tracks as "Copy NOT OK (unverified file kept)"

Signed-off-by: leper <leper4@protonmail.com>
@leper
Copy link
Copy Markdown
Author

leper commented Feb 13, 2026

Tested and squashed the previously WIP changes, it works nicely now.

Relevant parts of the log now look like the below

Tracks:
  1:
    Filename: <snip>/Death on the Road/Iron Maiden - Wildest Dreams.flac
    Peak level: 0.0
    Pre-emphasis:
    AccurateRip v1:
      Result: Track not present in AccurateRip database
    AccurateRip v2:
      Result: Track not present in AccurateRip database
    Status: Copy NOT OK (unverified file kept)
[...]
Conclusive status report:
  AccurateRip summary: None of the tracks are present in the AccurateRip database
  Health status: Some tracks could not be verified (but were kept)
  EOF: End of status report

There is a non-zero (6) exit code if any tracks were kept like this, given this is an accurate ripper.

@MerlijnWajer
Copy link
Copy Markdown
Collaborator

Thanks, this looks good.

@MerlijnWajer
Copy link
Copy Markdown
Collaborator

I am wondering about the exit code. If you pass the flag to keep the unverified tracks, I am not sure if exiting with a non-zero exit code makes sense...

@leper
Copy link
Copy Markdown
Author

leper commented Feb 17, 2026

I am wondering about the exit code. If you pass the flag to keep the unverified tracks, I am not sure if exiting with a non-zero exit code makes sense...

That way you can still distinguish if the rip just worked without checking the logs, one of the discs that pushed me to write this did suddenly manage to get matching checksums for the one scratched track.

If you think that is not useful I can just remove that return.

@MerlijnWajer
Copy link
Copy Markdown
Collaborator

Happy to hear thoughts from others, but my inclination is not to exit with an error if the flag is passed - the user seems to want to accept keeping unverified tracks, so the presence of those shouldn't return in an error, I think.

@dseomn
Copy link
Copy Markdown

dseomn commented Mar 26, 2026

Happy to hear thoughts from others, but my inclination is not to exit with an error if the flag is passed - the user seems to want to accept keeping unverified tracks, so the presence of those shouldn't return in an error, I think.

I was a bit surprised by the non-zero exit code with --keep-going, which seems pretty comparable to this. Thinking about it a bit more, I don't have much of an opinion about which way is better. I would prefer that both --keep-going and this --keep-unverified behave similarly though, either both returning 0 or both returning (possibly different) non-zero values. If they return non-zero, it would also be nice to document what specific code they return.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants