Add option to keep unverified tracks. Fixes #612.#649
Add option to keep unverified tracks. Fixes #612.#649leper wants to merge 1 commit intowhipper-team:developfrom
Conversation
|
Apologies for the delay. When you write:
Can you confirm that the final rip log does contain the track and indicates that it wasn't verified? |
c0e7e8e to
0b12802
Compare
Sample log for one disc I used that on (which has some "copy protection", I just found this one quickly) but the (unverified) track still exists. |
|
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. |
0b12802 to
f74d40c
Compare
|
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). |
f74d40c to
aee0972
Compare
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>
aee0972 to
cb3756f
Compare
|
Tested and squashed the previously WIP changes, it works nicely now. Relevant parts of the log now look like the below There is a non-zero (6) exit code if any tracks were kept like this, given this is an accurate ripper. |
|
Thanks, this looks good. |
|
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. |
|
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 |
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.