Add CDDB confirmation, cd-discid hint, CD-counter increment, check command

- interactive_rip: after CDDB lookup, show album name + tracklist and ask
  'Treffer korrekt? (j/n)' before renaming files; rip_disc gains rename=False
  option for deferred renaming
- interactive_rip: CD number prompt now shows disc_counter as default
  instead of always showing [1]
- _rip_with_abcde: when CDDB fails and cd-discid is not installed, print
  a visible hint with install command instead of silently doing nothing
- _stream_abcde: extract album name from CDDB header line (---- DTITLE ----)
  and return it as part of the result tuple
- _rename_files: early return when output directory does not exist
- check command (cli.py): already present from previous session

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Dieter Schlüter 2026-02-18 10:02:01 +01:00
commit 7ced974279
2 changed files with 67 additions and 31 deletions

View file

@ -337,6 +337,7 @@ class TestInteractiveRipBarcode:
"Abbey Road", # album name
"", # EAN: leer → überspringen
"1", # disc number
"j", # CDDB korrekt?
"n", # next CD?
"n", # next album?
]
@ -356,6 +357,7 @@ class TestInteractiveRipBarcode:
"Abbey Road", # album name
"0602557360561", # EAN
"1", # disc number
"j", # CDDB korrekt?
"n", # next CD?
"n", # next album?
]
@ -375,6 +377,7 @@ class TestInteractiveRipBarcode:
"", # album name: leer → Default
"0602557360561", # EAN
"1", # disc number
"j", # CDDB korrekt?
"n", # next CD?
"n", # next album?
]
@ -400,6 +403,7 @@ class TestInteractiveRipBarcode:
"Abbey Road", # album name
"0000000000000", # EAN (kein Treffer)
"1", # disc number
"j", # CDDB korrekt?
"n", # next CD?
"n", # next album?
]
@ -424,6 +428,7 @@ class TestInteractiveRipBarcode:
"", # album name: leer → Default (Album1)
"0602557360561", # EAN
"1", # disc number
"j", # CDDB korrekt?
"n",
"n",
]
@ -443,7 +448,8 @@ class TestInteractiveRipBarcode:
inputs = [
"Mein Album", # manuell eingegebener Name
"0602557360561", # EAN
"1",
"1", # disc number
"j", # CDDB korrekt?
"n",
"n",
]