Extended OneLibrary support

This commit is contained in:
patben8 committed 2026-09-22 17:38:23 +02:00
1 parent 0b38d4826f
commit ba3e7c251e
14 files changed
+851 -7

No files matched your search

@@ -236,6 +236,9 @@ class OneLibraryAdapter:
def _refuse(self, what: str):
raise Unsupported(self._readonly_reason(what))
def add_tracks(self, items: list) -> list[str]:
self._refuse("Adding tracks")
def set_track_metadata(self, track_id: str, fields: dict) -> Track | None:
self._refuse("Editing track metadata")
@@ -14,6 +14,11 @@ log = logging.getLogger(__name__)
class OneLibraryDriver:
platform = "onelibrary"
display_name = "OneLibrary"
# This platform's libraries live on plugged-in drives rather than at a
# fixed path, so `detect()` genuinely changes between calls and the app
# offers them as IMPORT SOURCES. Declared rather than inferred from the
# platform name, so a future Serato-on-a-stick needs no change upstream.
removable = True
suffixes = (".db",)
library_label = "exportLibrary.db"