limit custom playlist items to 100

This commit is contained in:
cwilvx
2024-08-04 19:31:22 +03:00
parent e562fa691d
commit 6d2aac084d
5 changed files with 20 additions and 43 deletions
+5
View File
@@ -200,6 +200,11 @@ def get_playlist(path: PlaylistIDPath, query: GetPlaylistQuery):
is_custom = playlistid in {p["name"] for p in custom_playlists}
if is_custom:
if query.start != 0:
return {
"tracks": [],
}
handler = next(
p["handler"] for p in custom_playlists if p["name"] == playlistid
)