fix: -1 limit on playlists in folder view

This commit is contained in:
cwilvx
2025-04-30 11:34:04 +03:00
parent 5c987cf879
commit bb4157cec1
+3 -1
View File
@@ -107,7 +107,9 @@ def get_folder_tree(body: FolderTree):
pid = splits[1]
playlist = PlaylistTable.get_by_id(int(pid))
tracks = TrackStore.get_tracks_by_trackhashes(
playlist.trackhashes[body.start : body.start + body.limit]
playlist.trackhashes[
body.start : body.start + body.limit if body.limit != -1 else None
]
)
return {