Skip to main content

Module repository

Module repository 

Source
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§

FavoritesChangedEvent
Payload for FAVORITES_CHANGED_EVENT — the ids whose favourite state actually flipped, so the frontend refreshes those rather than everything.
RepositoryManager
Repository handle manager
RepositoryManagerWrapper
Wrapper for Tauri state
SearchUpdateEvent
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_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