Implemented key setting into adapters

This commit is contained in:
patben8 committed 2026-10-04 16:06:36 +02:00
1 parent b5b3dd04c3
commit c3571fd054
23 files changed
+656 -101

No files matched your search

+4
View File
@@ -223,6 +223,10 @@ class LibraryAdapter(Protocol):
# ---- commands: track metadata / art ---------------------------------
def set_track_metadata(self, track_id: str, fields: dict) -> Track | None: ...
# The musical key, as a Camelot wheel position (1-12) + mode — what key
# analysis writes. Each platform renders it in its own notation (and its own
# analysed-key field, where it has one). Gated on `tracks.key_writable`.
def set_key(self, track_id: str, wheel: int, mode: str) -> Track | None: ...
def set_cover_art(self, track_id: str, data: bytes, mime: str) -> None: ...
def cover_art(self, track_id: str) -> tuple[bytes, str] | None: ...