Overview
TheMetaDetails model aggregates metadata from multiple addons, manages stream selection, tracks library state, and provides watch progress and rating functionality.
Structure
Selected
Defines what to load:meta_path- Resource path for metadata (e.g.,catalog/movie/tt1254207)stream_path- Optional path for streams (e.g.,stream/movie/tt1254207)guess_stream- Auto-select stream based on metadata
Stream Guessing
Whenguess_stream: true and stream_path: None:
Find Video ID
Uses
behavior_hints.default_video_id if available, otherwise uses meta.id if no videosMeta Items
Requests metadata from all addons supporting the resource:Streams
Meta Streams
Streams embedded in the MetaItem itself:Addon Streams
Streams from dedicated stream addons:Last Used Stream
Finds the most appropriate stream for binge watching:Library Integration
Library Item
Creates or updates LibraryItem from metadata:Watched BitField
Tracks which episodes have been watched:Rating System
Supported Items
Get Rating
Send Rating
Watch State Actions
Mark as Watched
times_watched and updates last_watched.
Mark Video as Watched
Mark Season as Watched
Usage Example
Best Practices
Stream Selection
Stream Selection
Use
guess_stream: true for series to automatically select the appropriate episode. For movies or when you know the specific video ID, set stream_path directly.Library Sync
Library Sync
MetaDetails automatically syncs library item metadata on load, ensuring the LibraryItem is created or updated with latest info.
Binge Watching
Binge Watching
The
last_used_stream field provides continuity for binge watching by matching streams based on source and binge group hints.