Erstellt aus CDs Musik für Jellyfin
Find a file
dschlueter f2d3684956 Fix file extraction: don't use abcde move, extract from temp dir ourselves
abcde's move action + OUTPUTFORMAT config failed because shell variables
like ${TRACKNUM} are evaluated immediately when the config is sourced.
Instead: skip move, search abcde's internal temp dir (abcde.XXXX/trackNN.flac)
and move files flat into output_dir ourselves.

- Replace _get_audio_files/_write_abcde_config with _extract_tracks()
- _rename_files() now matches track01.flac pattern (abcde naming)
- Fallback rename to 01.flac etc. when no CDDB data available

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-17 20:15:50 +01:00
idea initial commit 2026-02-15 01:00:12 +01:00
src/musiksammlung Fix file extraction: don't use abcde move, extract from temp dir ourselves 2026-02-17 20:15:50 +01:00
.gitignore Remove tests/ from repo, update .gitignore, improve ripper 2026-02-17 17:35:34 +01:00
BEDIENUNGSANLEITUNG.md Add work-in-progress warning to README and BEDIENUNGSANLEITUNG 2026-02-17 17:47:41 +01:00
LICENSE Initial commit 2026-02-15 00:53:30 +01:00
pyproject.toml Add project skeleton: CLI pipeline for CD digitization 2026-02-15 01:00:12 +01:00
README.md Add work-in-progress warning to README and BEDIENUNGSANLEITUNG 2026-02-17 17:47:41 +01:00

Musiksammlung

ACHTUNG! Das Programm ist nicht fertig!

CLI-Tool zum Digitalisieren von CD-Sammlungen für Jellyfin.

Überblick

Musiksammlung automatisiert die Digitalisierung physischer CDs:

  1. CDs rippen (via abcde, CDDB-Lookup)
  2. Coverbilder per OCR oder Vision-LLM analysieren
  3. Tracklisten per LLM extrahieren und als JSON speichern
  4. Audiodateien umbenennen, taggen und in Jellyfin-Struktur ablegen
  5. M3U-Playlisten erzeugen

Voraussetzungen

  • Python 3.11+
  • abcde (CD-Ripping)
  • tesseract (OCR, optional)
  • Ollama oder OpenAI-kompatibles LLM (optional)

Installation

pip install -e ".[dev]"

Schnellstart

# CDs rippen
musiksammlung rip -j 0 -P

# Coverbild scannen → album.json erzeugen
musiksammlung scan back.jpg -o album.json

# Audiodateien organisieren und taggen
musiksammlung apply temp/Album1/CD1 album.json ~/Musik

Ausführliche Anleitung: BEDIENUNGSANLEITUNG.md

Lizenz

Siehe LICENSE.