Skip to main content

Module library

Module library 

Source
Expand description

Calls on one library. Port of the media list, thumbnail and key parts of @redseat/api library.ts; the next-page key follows the web app’s MediasList.svelte.

Structs§

LibraryApi
Calls on one library. Cheap to clone; clones share the passphrase.
MediaPage
One page of medias.

Constants§

MEDIA_TIMEOUT
Timeout of LibraryApi::get_media: a whole file can take long to download.

Functions§

next_page_key
The key of the page after last for sort: <sort value>|<id>, the server’s keyset cursor. None for name and rating sorts, which the server cannot page (it only reads integer cursors), or when last lacks the sort value.

Type Aliases§

MediaItem
A media of a list, with its relations (tags, people, series…).