mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-11-27 10:22:51 +01:00
Implemented automatic path remapping
This commit is contained in:
1 parent
eccd352ae5
commit
99d590a051
17 files changed
+1025
-10
No files matched your search
@@ -25,6 +25,7 @@ from typing import Protocol, runtime_checkable
|
||||
from .capabilities import Capabilities
|
||||
from .model import Facets, PlaylistNode, Stats, Track, TrackCues, TrackPage
|
||||
from .pathmap import PathMapping
|
||||
from .relocate import PathGroup
|
||||
|
||||
|
||||
@dataclass
|
||||
@@ -176,6 +177,12 @@ class LibraryAdapter(Protocol):
|
||||
# ---- audio / paths ---------------------------------------------------
|
||||
def audio_path(self, track_id: str) -> Path | None: ...
|
||||
def set_path_mapping(self, mapping: PathMapping) -> None: ...
|
||||
# The open-time missing-files check (`core/relocate.py`): the stored volumes
|
||||
# in which NO track resolves, and the mappings the user confirmed for them —
|
||||
# session-only, applied beneath the saved mapping. An adapter that does not
|
||||
# take part returns no groups, so its library is never checked.
|
||||
def unresolved_path_groups(self) -> list[PathGroup]: ...
|
||||
def set_session_mappings(self, mappings: list[PathMapping]) -> None: ...
|
||||
def path_prefix_suggestions(self) -> dict: ...
|
||||
def remap_preview(self, mapping: PathMapping) -> dict: ...
|
||||
# {old track id: new track id}; ids may change because a Traktor id IS its path.
|
||||
|
||||
Reference in new issue
Block a user