mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-11-27 10:22:51 +01:00
Switched to more generic wording
This commit is contained in:
1 parent
c9e85bbdb5
commit
6e24f5ef1d
29 files changed
+796
-319
No files matched your search
@@ -154,20 +154,26 @@ class TraktorStore:
|
||||
return PlaylistNode(
|
||||
id=pl.uuid if pl and pl.uuid else name,
|
||||
name=name,
|
||||
type="PLAYLIST",
|
||||
uuid=pl.uuid if pl else None,
|
||||
kind="playlist",
|
||||
count=len(keys),
|
||||
selectable=True,
|
||||
can_add_tracks=True,
|
||||
can_reorder=True,
|
||||
can_rename=True,
|
||||
can_delete=True,
|
||||
)
|
||||
if ntype == "SMARTLIST" or node.smartplaylist is not None:
|
||||
# Rule-based, so it has no static entry list to show or edit.
|
||||
return PlaylistNode(
|
||||
id="sl:" + "/".join(parent_path + [name]), name=name, type="SMARTLIST"
|
||||
id="sl:" + "/".join(parent_path + [name]), name=name, kind="smart"
|
||||
)
|
||||
path = parent_path + [name]
|
||||
return PlaylistNode(
|
||||
id="fld:" + "/".join(path),
|
||||
name=name,
|
||||
type="FOLDER",
|
||||
kind="folder",
|
||||
children=[self._to_model(c, path) for c in self._children(node)],
|
||||
can_contain_children=True,
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
|
||||
Reference in new issue
Block a user