Overview
Library management commands handle media items (movies, TV shows, episodes) stored locally or in Google Drive. All commands return Promise-based results through the Tauri IPC bridge.Commands
get_library
Retrieve library items filtered by media type.Type of media to retrieve:
"movie" or "tv"Optional search query to filter results by title
Array of media items matching the criteria
get_library_filtered
Get library items with cloud storage filtering.Type of media:
"movie" or "tv"Optional search query
Filter by cloud storage:
true: Only cloud mediafalse: Only local medianull: All media
get_media_info
Retrieve detailed information for a specific media item.Database ID of the media item
get_episodes
Get all episodes for a TV show series.Database ID of the parent TV show
Array of episode items with
season_number, episode_number, and episode_title fields populateddelete_media_files
Permanently delete media files from disk or Google Drive.Array of media IDs to delete
This permanently deletes files. Cloud files are removed from Google Drive. Local files bypass the recycle bin.
get_resume_info
Get playback resume information for a media item.Media item database ID
update_resume_position
Alias forupdate_progress. Updates the playback position for a media item.
Media item ID
Current playback position in seconds
Total duration in seconds
Progress is automatically reset to 0 when playback reaches 95% completion.
mark_watched
Mark a media item as fully watched (100% complete).Media item to mark as watched
mark_unwatched
Reset playback progress to unwatched state.Media item to reset
get_watch_history
Retrieve recently watched media items.Maximum number of items to return (default: 50)
Array of media items ordered by
last_watched timestamp (most recent first)