Erstellt aus CDs Musik für Jellyfin
Find a file
dschlueter 795be8609a Opus/M4A-Cover-Embedding, cover.py-Tests und OCR-Tests
- tagger.py: embed_cover() unterstützt jetzt .opus (Vorbis-Comment
  METADATA_BLOCK_PICTURE) und .m4a (MP4Cover); imports ergänzt
- test_tagger.py: 2 neue Tests für Opus/M4A; minimale Audio-Fixtures
  als base64-Konstanten (176 B Opus, 856 B M4A)
- test_cover.py: TestPrepareCover (5 Tests) und TestCopyCovers (6 Tests)
  für prepare_cover() und copy_covers()
- test_ocr.py: 13 Tests für run_ocr(), _detect_and_fix_rotation()
  und ocr_images(); Tesseract via subprocess.run gemockt

144 Tests, 0 Fehler

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-18 04:50:13 +01:00
.forgejo/workflows Lint-Fixes, process-Disc-Validierung und Forgejo-CI 2026-02-18 00:51:14 +01:00
idea initial commit 2026-02-15 01:00:12 +01:00
src/musiksammlung Opus/M4A-Cover-Embedding, cover.py-Tests und OCR-Tests 2026-02-18 04:50:13 +01:00
tests Opus/M4A-Cover-Embedding, cover.py-Tests und OCR-Tests 2026-02-18 04:50:13 +01:00
.gitignore Fix and expand tests: 63 tests passing, covers all core modules 2026-02-18 00:00:44 +01:00
BEDIENUNGSANLEITUNG.md LLM-Parser-Tests, check-Befehl und Cover-Doku 2026-02-18 00:45:49 +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.