Interface: SourceMediaItem
Logical media or container returned by a source addon.
Extended by
Properties
id
id:
string
Stable source identifier. It is passed back to resolvePlayback.
type
type:
SourceMediaType
Shape of this item.
title
title:
string
User-facing title.
isContainer
isContainer:
boolean
Whether selecting the item should browse children instead of starting playback.
tmdbId?
optionaltmdbId?:number
Authoritative TMDB identifier for this media. The host may use it for enrichment and exact cross-source reconciliation; omit it when only guessed.
imdbId?
optionalimdbId?:string
IMDb identifier when known.
hash?
optionalhash?:string
Optional source-provided content or deduplication hash.
runTimeTicks?
optionalrunTimeTicks?:number
Duration in 100-nanosecond ticks.
thumbnailUrl?
optionalthumbnailUrl?:string
Compact image suitable for rows or source-specific lists.
premiereDate?
optionalpremiereDate?:string
ISO-8601 premiere or release date.
productionYear?
optionalproductionYear?:number
Four-digit production year.
originalTitle?
optionaloriginalTitle?:string
Original-language title.
overview?
optionaloverview?:string
Plot or content summary.
rating?
optionalrating?:number
Source-provided rating normalized to the inclusive 0-to-10 scale.
genres?
optionalgenres?:object[]
Human-readable genres.
name
name:
string
posterUrl?
optionalposterUrl?:string
Portrait artwork URL.
backdropUrl?
optionalbackdropUrl?:string
Landscape artwork URL.
seasonNumber?
optionalseasonNumber?:number
Season number for season and episode items.
episodeNumber?
optionalepisodeNumber?:number
Episode number for episode items.
seriesTmdbId?
optionalseriesTmdbId?:number
Authoritative TMDB series identifier used to enrich and reconcile a season or episode in its parent context; omit it when only guessed.
seriesTitle?
optionalseriesTitle?:string
Parent series title for a season or episode.
childrenCount?
optionalchildrenCount?:number
Number of known direct children for a container.
qualityLabel?
optionalqualityLabel?:string
Composite or legacy quality label. Prefer the structured fields below when known.
resolution?
optionalresolution?:string
Technical resolution such as 1920x1080.
source?
optionalsource?:string
Human-readable distribution origin such as WEB-DL or BluRay.
encoding?
optionalencoding?:string
Codec or encoding label.
language?
optionallanguage?:string
Audio or content language label.
tags?
optionaltags?:SourceTag[]
Addon-defined badges for metadata that does not fit the structured technical fields.
addedAt?
optionaladdedAt?:string
ISO-8601 date at which the source added this item.