mirror of
https://github.com/Jellify-Music/App.git
synced 2026-05-23 05:19:04 -05:00
13 lines
332 B
TypeScript
13 lines
332 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
|
|
});
|
|
} |