Fixed crash caused by permanent path remapping

This commit is contained in:
patben8 committed 2026-09-25 22:41:08 +02:00
1 parent a3747e887b
commit b9d43dd7ea
9 files changed
+53 -28

No files matched your search

+3 -1
View File
@@ -106,6 +106,7 @@ class LibraryAdapter(Protocol):
def reload(self) -> None: ...
# ---- read projection -------------------------------------------------
@property
def tracks(self) -> list[Track]: ...
def track(self, track_id: str) -> Track | None: ...
def query_tracks(self, **kw) -> TrackPage: ...
@@ -177,7 +178,8 @@ class LibraryAdapter(Protocol):
def set_path_mapping(self, mapping: PathMapping) -> None: ...
def path_prefix_suggestions(self) -> dict: ...
def remap_preview(self, mapping: PathMapping) -> dict: ...
def remap_locations(self, mapping: PathMapping) -> int: ...
# {old track id: new track id}; ids may change because a Traktor id IS its path.
def remap_locations(self, mapping: PathMapping) -> dict[str, str]: ...
# ---- save -------------------------------------------------------------
@property