Expand description
Tauri commands for repository access
Uses handle-based system: UUID -> Arc
TRACES: UR-007, UR-008, UR-023, UR-034, UR-035, UR-036 | IR-022, IR-024, JA-004, JA-005, JA-006, JA-029, JA-030, JA-031
Structs§
- Favorites
Changed Event - Payload for
FAVORITES_CHANGED_EVENT— the ids whose favourite state actually flipped, so the frontend refreshes those rather than everything. - Repository
Manager - Repository handle manager
- Repository
Manager Wrapper - Wrapper for Tauri state
- Search
Update Event - Payload for the deferred, merged search results pushed to the frontend.
Constants§
- FAVORITES_
CHANGED_ EVENT - Tauri event announcing that favourite state changed behind the UI’s back — either because the server disagreed with the cache on a background refresh, or because pending offline toggles were pushed on reconnect.
- SEARCH_
EVENT_ NAME - Tauri event name carrying the merged (cache + server) search results.
Functions§
- changed_
favorite_ 🔒ids - Ids whose favourite state differs between what we showed and what the server has — favourited elsewhere since the cache was written, or un-favourited elsewhere.
- repository_
clear_ watch_ history - Erase the viewer’s watch history for an item.
- repository_
create - Create a new repository instance Returns a handle (UUID) for accessing the repository
- repository_
destroy - Destroy a repository instance
- repository_
get_ audio_ only_ stream_ url_ for_ video - Get an audio-only stream URL for a video item (background-audio handoff).
- repository_
get_ audio_ stream_ url - Get audio stream URL for a track
- repository_
get_ channels - Get the root list of plugin “Channels”
- repository_
get_ download_ disk_ usage - On-disk usage of downloaded content (device total, per-item/container bytes).
- repository_
get_ downloaded_ items - Downloaded-only browse: items under a container that are on the device.
- repository_
get_ downloaded_ libraries - Downloaded-only browse: libraries that contain downloaded content.
- repository_
get_ favorites - Everything the viewer has favourited, across libraries, narrowed by scope.
- repository_
get_ genres - Get genres for a library
- repository_
get_ image_ url - Get image URL for an item
- repository_
get_ item - Get a single item by ID
- repository_
get_ items - Get items in a container (library, folder, album, etc.)
- repository_
get_ items_ by_ person - Get items by person (actor, director, etc.)
- repository_
get_ latest_ items - Get latest items in a library
- repository_
get_ libraries - Get libraries
- repository_
get_ live_ tv_ channels - Get Live TV channels (broadcast / IPTV) for browsing
- repository_
get_ next_ up_ episodes - Get next up episodes.
- repository_
get_ person - Get person details
- repository_
get_ playback_ info - Get playback info for an item
- repository_
get_ recently_ played_ audio - Get recently played audio
- repository_
get_ rediscover_ albums - Get albums the user hasn’t listened to recently (“rediscover”)
- repository_
get_ resume_ items - Get resume items (continue watching/listening).
- repository_
get_ resume_ movies - Get resume movies
- repository_
get_ series_ current_ episode - The episode a viewer should land on when they open a series.
- repository_
get_ series_ episodes - Every episode of a series, across all seasons, in series order.
- repository_
get_ similar_ items - Get similar/related items for a media item
- repository_
get_ stream_ selection - Decide what stream to play for a video, and describe it.
- repository_
get_ subtitle_ url - Get subtitle URL for a media item
- repository_
get_ video_ download_ url - Get video download URL with quality preset
- repository_
get_ video_ stream_ url - Get a video stream URL.
- repository_
jray_ actors_ at - Query the optional JRay plugin for the actors on screen at time
t(seconds) in an item. Returns an empty list when JRay isn’t installed or has no data for the item, so the caller can render nothing without error. - repository_
mark_ favorite - Mark an item as favorite
- repository_
open_ live_ stream - Open a live stream for a Live TV channel / live item
- repository_
report_ playback_ progress - Report playback progress
- repository_
report_ playback_ start - Report playback start
- repository_
report_ playback_ stopped - Report playback stopped
- repository_
search - Search for items.
- repository_
unmark_ favorite - Unmark an item as favorite