mirror of
https://github.com/Jellify-Music/App.git
synced 2026-05-08 20:39:26 -05:00
23c305263b
add some downloads logic
13 lines
339 B
TypeScript
13 lines
339 B
TypeScript
import Client from "../../../api/client";
|
|
import { getPlaylistsApi } from "@jellyfin/sdk/lib/utils/api";
|
|
|
|
|
|
|
|
export async function reorderPlaylist(playlistId: string, itemId: string, to: number) {
|
|
return getPlaylistsApi(Client.api!)
|
|
.moveItem({
|
|
playlistId,
|
|
itemId,
|
|
newIndex: to
|
|
});
|
|
} |