- FastAPI-Backend mit vollständiger ABS v2.x API-Kompatibilität - SQLAlchemy-Models: User, Library, LibraryItem, BookFile, Chapter, Podcast, PodcastEpisode, MediaProgress, Bookmark, PlaybackSession - Auth: JWT-Login (/login, /logout, /api/authorize) - Library + Items Endpoints inkl. camelCase ABS-Response-Format - HLS-Streaming via FFmpeg (POST /api/items/:id/play, Session-Sync) - Me/Progress Endpoints + Lesezeichen - User-Management + Server-Settings (Admin) - Library-Scanner (MP3/WAV Discovery, Hintergrund-Task) - File Watcher (watchdog, 30s Debounce) - Matching-Skelett (MusicBrainz, OpenLibrary, Google Books – Phase 5) - Docker-Setup: backend (Python 3.12+FFmpeg), frontend (React/Vite), nginx Reverse-Proxy auf Port 3000 - setup.sh: Installiert Docker auf Debian/Ubuntu, richtet .env ein Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
26 lines
677 B
Python
26 lines
677 B
Python
from dataclasses import dataclass, field
|
|
from typing import Optional
|
|
|
|
|
|
@dataclass
|
|
class MatchResult:
|
|
source: str # musicbrainz / open_library / google_books
|
|
source_id: str
|
|
title: str
|
|
author: str | None = None
|
|
narrator: str | None = None
|
|
description: str | None = None
|
|
cover_url: str | None = None
|
|
publisher: str | None = None
|
|
publish_year: int | None = None
|
|
series: str | None = None
|
|
series_sequence: str | None = None
|
|
language: str | None = None
|
|
genres: list[str] = field(default_factory=list)
|
|
chapters: list[dict] = field(default_factory=list)
|
|
confidence: float = 0.0
|
|
|
|
|
|
class BaseMatcherError(Exception):
|
|
pass
|