mirror of
https://git.stupid.fish/teidesu/scripts.git
synced 2026-01-12 23:21:08 +11:00
chore: update public repo
This commit is contained in:
parent
56472e5520
commit
6c1fe8a13c
7 changed files with 1625 additions and 95 deletions
|
|
@ -33,6 +33,16 @@ export const NavidromeSong = z.object({
|
|||
libraryPath: z.string(),
|
||||
duration: z.number(),
|
||||
size: z.number(),
|
||||
participants: z.object({
|
||||
artist: z.object({
|
||||
id: z.string(),
|
||||
name: z.string(),
|
||||
}).array().optional(),
|
||||
}).optional(),
|
||||
mbzRecordingID: z.string().optional(),
|
||||
mbzReleaseTrackId: z.string().optional(),
|
||||
mbzAlbumId: z.string().optional(),
|
||||
mbzReleaseGroupId: z.string().optional(),
|
||||
})
|
||||
export type NavidromeSong = z.infer<typeof NavidromeSong>
|
||||
|
||||
|
|
@ -43,7 +53,7 @@ export async function fetchSongs(offset: number, pageSize: number) {
|
|||
_start: offset,
|
||||
_end: offset + pageSize,
|
||||
_order: 'ASC',
|
||||
_sort: 'title',
|
||||
_sort: 'path',
|
||||
},
|
||||
}).parsedJson(z.array(NavidromeSong))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue