mirror of
https://git.stupid.fish/teidesu/scripts.git
synced 2025-10-13 00:01:27 +11:00
chore: update public repo
This commit is contained in:
parent
ccc5f98f34
commit
728699b3ec
8 changed files with 1990 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