Implemented untested support for Rekordbox and OneLibrary exports

This commit is contained in:
patben8 committed 2026-09-23 16:19:50 +02:00
1 parent a5f995562f
commit 68e0b032b3
16 files changed
+1646 -32

No files matched your search

@@ -1,18 +1,16 @@
"""The OneLibrary adapter: a USB drive's ``exportLibrary.db``, via ``pyrekordbox``.
"""The OneLibrary adapter: the cross-vendor USB export format.
OneLibrary is the cross-vendor USB export format agreed between AlphaTheta,
Algoriddim and Native Instruments, and read by CDJ-class hardware as well as by
rekordbox, djay Pro and Traktor. Unlike every other adapter, its library is a
REMOVABLE DRIVE rather than a file in a known place — see `layout.py`.
Importing this package registers the platform, so ``core.registry`` can find it
without knowing it exists.
Read-only: a drive is projected, browsed and searched, and every command is
refused. See `adapter.py` for why that scope is deliberate.
Importing this package registers the platform for READING (a plugged-in drive)
and as an export TARGET (writing a fresh drive). Two registries, because opening
a library and creating one from nothing are different capabilities.
"""
from ...core import export as core_export
from ...core import registry
from .driver import OneLibraryDriver
from .export import OneLibraryExporter
ONELIBRARY = OneLibraryDriver()
registry.register(ONELIBRARY)
ONELIBRARY_EXPORTER = OneLibraryExporter()
core_export.register(ONELIBRARY_EXPORTER)