mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-12-01 18:32:51 +01:00
Extended OneLibrary support
This commit is contained in:
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"
|
||||
|
||||
|
||||
Reference in new issue
Block a user