xbmc

package
v0.0.0-...-29a3764 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LogDebug ...
	LogDebug = iota
	// LogInfo ...
	LogInfo
	// LogNotice ...
	LogNotice
	// LogWarning ...
	LogWarning
	// LogError ...
	LogError
	// LogSevere ...
	LogSevere
	// LogFatal ...
	LogFatal
	// LogNone ...
	LogNone
)
View Source
const (
	// Iso639_1 ...
	Iso639_1 = iota
	// Iso639_2 ...
	Iso639_2
	// EnglishName ...
	EnglishName
)

Variables

View Source
var (
	// XBMCJSONRPCHosts ...
	XBMCJSONRPCHosts = []string{
		net.JoinHostPort("127.0.0.1", "9090"),
	}
	// XBMCExJSONRPCHosts ...
	XBMCExJSONRPCHosts = []string{
		net.JoinHostPort("127.0.0.1", "65221"),
	}
)
View Source
var (
	// KodiVersion saves Kodi platform
	KodiVersion = 0

	// DialogAutoclose determines number of seconds to wait
	// until DialogConfirm should be automatically closed
	DialogAutoclose = 0
)
View Source
var (
	// DialogExpiration sets time (in second) for autoclose setting
	DialogExpiration = DialogExpirationType{
		Existing:   7,
		InTorrents: 7,
	}
)
View Source
var Results map[string]chan interface{}

Results ...

Functions

func AddonCheck

func AddonCheck(addonID string) (failures int)

AddonCheck ...

func AddonFailure

func AddonFailure(addonID string) (failures int)

AddonFailure ...

func AddonSettings

func AddonSettings(addonID string) (retVal string)

AddonSettings ...

func AddonSettingsOpened

func AddonSettingsOpened() bool

AddonSettingsOpened ...

func CloseAllDialogs

func CloseAllDialogs() bool

CloseAllDialogs ...

func ConvertLanguage

func ConvertLanguage(language string, format int) string

ConvertLanguage ...

func Dialog

func Dialog(title string, message string) bool

Dialog ...

func DialogConfirm

func DialogConfirm(title string, message string) bool

DialogConfirm ...

func DialogConfirmFocused

func DialogConfirmFocused(title string, message string) bool

DialogConfirmFocused ...

func DialogInsert

func DialogInsert() map[string]string

DialogInsert ...

func DialogProgressBGCleanup

func DialogProgressBGCleanup()

DialogProgressBGCleanup ...

func DialogText

func DialogText(title string, text string) bool

DialogText ...

func ExecuteAddon

func ExecuteAddon(addonID string, args ...interface{})

ExecuteAddon ...

func GetCurrentView

func GetCurrentView() (viewMode string)

GetCurrentView ...

func GetLanguage

func GetLanguage(format int) string

GetLanguage ...

func GetLanguageISO639_1

func GetLanguageISO639_1() string

GetLanguageISO639_1 ...

func GetLocalizedString

func GetLocalizedString(id int) (retVal string)

GetLocalizedString ...

func GetSettingBool

func GetSettingBool(id string) bool

GetSettingBool ...

func GetSettingInt

func GetSettingInt(id string) int

GetSettingInt ...

func GetSettingString

func GetSettingString(id string) (retVal string)

GetSettingString ...

func GetWatchTimes

func GetWatchTimes() map[string]string

GetWatchTimes ...

func GetWindowProperty

func GetWindowProperty(key string) string

GetWindowProperty ...

func InfoLabel

func InfoLabel(label string) string

InfoLabel ...

func InfoLabels

func InfoLabels(labels ...string) map[string]string

InfoLabels ...

func InstallAddon

func InstallAddon(addonID string) (ret string)

InstallAddon ...

func IsAddonEnabled

func IsAddonEnabled(addonID string) bool

IsAddonEnabled ...

func IsAddonInstalled

func IsAddonInstalled(addonID string) bool

IsAddonInstalled ...

func Keyboard

func Keyboard(args ...interface{}) string

Keyboard ...

func ListDialog

func ListDialog(title string, items ...string) int

ListDialog ...

func ListDialogLarge

func ListDialogLarge(title string, subject string, items ...string) int

ListDialogLarge ...

func Log

func Log(args ...interface{})

Log ...

func Notify

func Notify(header string, message string, image string)

Notify ...

func OpenDirectory

func OpenDirectory(path string)

OpenDirectory ...

func PlayURL

func PlayURL(url string)

PlayURL ...

func PlayURLWithLabels

func PlayURLWithLabels(url string, listItem *ListItem)

PlayURLWithLabels ...

func PlayURLWithTimeout

func PlayURLWithTimeout(url string)

PlayURLWithTimeout ...

func PlayerGetActive

func PlayerGetActive() int

PlayerGetActive ...

func PlayerGetPlayingFile

func PlayerGetPlayingFile() string

PlayerGetPlayingFile ...

func PlayerGetSubtitles

func PlayerGetSubtitles() (ret []string)

PlayerGetSubtitles ...

func PlayerIsPaused

func PlayerIsPaused() bool

PlayerIsPaused ...

func PlayerIsPlaying

func PlayerIsPlaying() bool

PlayerIsPlaying ...

func PlayerSeek

func PlayerSeek(position float64) (ret string)

PlayerSeek ...

func PlayerSetSubtitles

func PlayerSetSubtitles(urls []string)

PlayerSetSubtitles ...

func PlaylistClear

func PlaylistClear() (retVal int)

PlaylistClear ...

func PlaylistLeft

func PlaylistLeft() (retVal int)

PlaylistLeft ...

func PlaylistSize

func PlaylistSize() (retVal int)

PlaylistSize ...

func Refresh

func Refresh() (retVal string)

Refresh ...

func ResetRPC

func ResetRPC() (retVal string)

ResetRPC ...

func SetAddonEnabled

func SetAddonEnabled(addonID string, enabled bool) (retval string)

SetAddonEnabled ...

func SetEpisodePlaycount

func SetEpisodePlaycount(episodeID int, playcount int) (ret string)

SetEpisodePlaycount ...

func SetEpisodeProgress

func SetEpisodeProgress(episodeID int, position int, total int) (ret string)

SetEpisodeProgress ...

func SetEpisodeProgressWithDate

func SetEpisodeProgressWithDate(episodeID int, position int, total int, dt time.Time) (ret string)

SetEpisodeProgressWithDate ...

func SetEpisodeWatched

func SetEpisodeWatched(episodeID int, playcount int, position int, total int) (ret string)

SetEpisodeWatched ...

func SetEpisodeWatchedWithDate

func SetEpisodeWatchedWithDate(episodeID int, playcount int, position int, total int, dt time.Time) (ret string)

SetEpisodeWatchedWithDate ...

func SetFileWatched

func SetFileWatched(file string, position int, total int) (ret string)

SetFileWatched ...

func SetMoviePlaycount

func SetMoviePlaycount(movieID int, playcount int) (ret string)

SetMoviePlaycount ...

func SetMovieProgress

func SetMovieProgress(movieID int, position int, total int) (ret string)

SetMovieProgress ...

func SetMovieProgressWithDate

func SetMovieProgressWithDate(movieID int, position int, total int, dt time.Time) (ret string)

SetMovieProgressWithDate ...

func SetMovieWatched

func SetMovieWatched(movieID int, playcount int, position int, total int) (ret string)

SetMovieWatched ...

func SetMovieWatchedWithDate

func SetMovieWatchedWithDate(movieID int, playcount int, position int, total int, dt time.Time) (ret string)

SetMovieWatchedWithDate ...

func SetResolvedURL

func SetResolvedURL(url string)

SetResolvedURL ...

func SetSetting

func SetSetting(id string, value interface{})

SetSetting ...

func SetShowWatched

func SetShowWatched(showID int, playcount int) (ret string)

SetShowWatched ...

func SetShowWatchedWithDate

func SetShowWatchedWithDate(showID int, playcount int, dt time.Time) (ret string)

SetShowWatchedWithDate ...

func SetWindowProperty

func SetWindowProperty(key string, value string)

SetWindowProperty ...

func SettingsGetSettingValue

func SettingsGetSettingValue(setting string) string

SettingsGetSettingValue ...

func TranslatePath

func TranslatePath(path string) (retVal string)

TranslatePath ...

func UpdateAddonRepos

func UpdateAddonRepos() (retVal string)

UpdateAddonRepos ...

func UpdateLocalAddons

func UpdateLocalAddons() (ret string)

UpdateLocalAddons ...

func UpdatePath

func UpdatePath(path string) (retVal string)

UpdatePath ...

func VideoLibraryClean

func VideoLibraryClean() (retVal string)

VideoLibraryClean ...

func VideoLibraryScan

func VideoLibraryScan() (retVal string)

VideoLibraryScan ...

func VideoLibraryScanDirectory

func VideoLibraryScanDirectory(directory string, showDialogs bool) (retVal string)

VideoLibraryScanDirectory ...

Types

type ActivePlayers

type ActivePlayers []struct {
	ID   int    `json:"playerid"`
	Type string `json:"type"`
}

ActivePlayers ...

func (ActivePlayers) MarshalMsg

func (z ActivePlayers) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (ActivePlayers) Msgsize

func (z ActivePlayers) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*ActivePlayers) UnmarshalMsg

func (z *ActivePlayers) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type Addon

type Addon struct {
	XMLName      xml.Name          `xml:"addon"`
	ID           string            `xml:"id,attr"`
	Name         string            `xml:"name,attr"`
	Version      string            `xml:"version,attr"`
	ProviderName string            `xml:"provider-name,attr"`
	Requires     []*AddonImport    `xml:"requires>import,omitempty"`
	Extensions   []*AddonExtension `xml:"extension"`
}

Addon ...

type AddonExtension

type AddonExtension struct {
	Point string `xml:"point,attr"`

	// xbmc.python.pluginsource
	// xbmc.service
	Library string `xml:"library,attr,omitempty"`

	// xbmc.python.pluginsource
	Provides string `xml:"provides,omitempty"`

	// xbmc.service
	Start string `xml:"start,attr,omitempty"`

	// xbmc.addon.metadata
	Language     string       `xml:"language,omitempty"`
	Platform     string       `xml:"platform,omitempty"`
	License      string       `xml:"license,omitempty"`
	Forum        string       `xml:"forum,omitempty"`
	Website      string       `xml:"website,omitempty"`
	Email        string       `xml:"email,omitempty"`
	Source       string       `xml:"source,omitempty"`
	Broken       string       `xml:"broken,omitempty"`
	Summaries    []*AddonText `xml:"summary,omitempty"`
	Disclaimers  []*AddonText `xml:"disclaimer,omitempty"`
	Descriptions []*AddonText `xml:"description,omitempty"`

	// xbmc.addon.repository
	Name     string                  `xml:"name,attr,omitempty"`
	Info     *AddonRepositoryInfo    `xml:"info,omitempty"`
	Checksum string                  `xml:"checksum,omitempty"`
	Datadir  *AddonRepositoryDataDir `xml:"datadir,omitempty"`

	// xbmc.gui.skin
	DefaultResolution     string                 `xml:"defaultresolution,omitempty"`
	DefaultResolutionWide string                 `xml:"defaultresolutionwide,omitempty"`
	DefaultThemeName      string                 `xml:"defaultthemename,omitempty"`
	EffectsSlowdown       string                 `xml:"effectslowdown,omitempty"`
	Debugging             string                 `xml:"debugging,omitempty"`
	Resolutions           []*AddonSkinResolution `xml:"res,omitempty"`
}

AddonExtension ...

type AddonImport

type AddonImport struct {
	XMLName  xml.Name `xml:"import"`
	Addon    string   `xml:"addon,attr"`
	Version  string   `xml:"version,attr"`
	Optional string   `xml:"optional,attr,omitempty"`
}

AddonImport ...

type AddonInfo

type AddonInfo struct {
	Author      string `xml:"id,attr"`
	Changelog   string
	Description string
	Disclaimer  string
	Fanart      string
	Home        string
	Icon        string
	ID          string
	Name        string
	Path        string
	Profile     string
	TempPath    string
	Stars       string
	Summary     string
	Type        string
	Version     string
	Xbmc        string
}

AddonInfo ...

func GetAddonInfo

func GetAddonInfo() *AddonInfo

GetAddonInfo ...

type AddonInfoDetails

type AddonInfoDetails struct {
	Addon struct {
		ID        string `json:"addonid"`
		Type      string `json:"type"`
		Name      string `json:"name"`
		Version   string `json:"version"`
		Enabled   bool   `json:"enabled"`
		Installed bool   `json:"installed"`
	} `json:"addon"`
}

AddonInfoDetails ...

func GetAddonDetails

func GetAddonDetails(addonID string) AddonInfoDetails

GetAddonDetails ...

type AddonList

type AddonList struct {
	XMLName xml.Name `xml:"addons"`
	Addons  []Addon
}

AddonList ...

type AddonRepositoryDataDir

type AddonRepositoryDataDir struct {
	XMLName xml.Name `xml:"datadir"`
	Text    string   `xml:",chardata"`
	Zip     bool     `xml:"zip,attr"`
}

AddonRepositoryDataDir ...

type AddonRepositoryInfo

type AddonRepositoryInfo struct {
	XMLName    xml.Name `xml:"info"`
	Text       string   `xml:",chardata"`
	Compressed bool     `xml:"compressed,attr"`
}

AddonRepositoryInfo ...

type AddonSkinResolution

type AddonSkinResolution struct {
	XMLName xml.Name `xml:"res"`
	Width   int      `xml:"width,attr"`
	Height  int      `xml:"height,attr"`
	Aspect  string   `xml:"aspect,attr"`
	Default bool     `xml:"default,attr"`
	Folder  string   `xml:"folder,attr"`
}

AddonSkinResolution ...

type AddonText

type AddonText struct {
	Text string `xml:",chardata"`
	Lang string `xml:"lang,attr"`
}

AddonText ...

type AddonsList

type AddonsList struct {
	Addons []*struct {
		ID      string `json:"addonid"`
		Type    string `json:"type"`
		Name    string `json:"name"`
		Version string `json:"version"`
		Enabled bool   `json:"enabled"`
	} `json:"addons"`
}

AddonsList ...

func GetAddons

func GetAddons(args ...interface{}) *AddonsList

GetAddons ...

type AdvancedSettings

type AdvancedSettings struct {
	LogLevel int `xml:"loglevel"`
	Cache    struct {
		MemorySizeLegacy int `xml:"cachemembuffersize"`
		MemorySize       int `xml:"memorysize"`
		BufferMode       int `xml:"buffermode"`
		ReadFactor       int `xml:"readfactor"`
	} `xml:"cache"`
}

AdvancedSettings describes advancedsettings.xml

func (*AdvancedSettings) MarshalMsg

func (z *AdvancedSettings) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*AdvancedSettings) Msgsize

func (z *AdvancedSettings) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*AdvancedSettings) UnmarshalMsg

func (z *AdvancedSettings) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type Args

type Args []interface{}

Args ...

type ContextMenuItem

type ContextMenuItem struct {
	Label  string `json:"label"`
	Action string `json:"action"`
}

ContextMenuItem ...

func (ContextMenuItem) MarshalMsg

func (z ContextMenuItem) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (ContextMenuItem) Msgsize

func (z ContextMenuItem) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*ContextMenuItem) UnmarshalMsg

func (z *ContextMenuItem) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type DialogExpirationType

type DialogExpirationType struct {
	Default int

	Existing   int
	InTorrents int
}

DialogExpirationType describes dialog autoclose types

type DialogProgress

type DialogProgress struct {
	// contains filtered or unexported fields
}

DialogProgress ...

func NewDialogProgress

func NewDialogProgress(title, line1, line2, line3 string) *DialogProgress

NewDialogProgress ...

func (*DialogProgress) Close

func (dp *DialogProgress) Close()

Close ...

func (*DialogProgress) IsCanceled

func (dp *DialogProgress) IsCanceled() bool

IsCanceled ...

func (*DialogProgress) Update

func (dp *DialogProgress) Update(percent int, line1, line2, line3 string)

Update ...

type DialogProgressBG

type DialogProgressBG struct {
	// contains filtered or unexported fields
}

DialogProgressBG ...

func NewDialogProgressBG

func NewDialogProgressBG(title, message string, translations ...string) *DialogProgressBG

NewDialogProgressBG ...

func (*DialogProgressBG) Close

func (dp *DialogProgressBG) Close()

Close ...

func (*DialogProgressBG) IsFinished

func (dp *DialogProgressBG) IsFinished() bool

IsFinished ...

func (*DialogProgressBG) Update

func (dp *DialogProgressBG) Update(percent int, heading string, message string)

Update ...

type EventPlayer

type EventPlayer struct {
	// contains filtered or unexported fields
}

EventPlayer ...

func NewEventPlayer

func NewEventPlayer() *EventPlayer

NewEventPlayer ...

func (*EventPlayer) Clear

func (ep *EventPlayer) Clear()

Clear ...

func (*EventPlayer) Close

func (ep *EventPlayer) Close()

Close ...

func (*EventPlayer) IsPlaying

func (ep *EventPlayer) IsPlaying() bool

IsPlaying ...

func (*EventPlayer) PopEvent

func (ep *EventPlayer) PopEvent() string

PopEvent ...

type FileSources

type FileSources struct {
	Sources []struct {
		FilePath string `json:"file"`
		Label    string `json:"label"`
	} `json:"sources"`
}

FileSources ...

func FilesGetSources

func FilesGetSources() *FileSources

FilesGetSources ...

func (*FileSources) MarshalMsg

func (z *FileSources) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*FileSources) Msgsize

func (z *FileSources) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*FileSources) UnmarshalMsg

func (z *FileSources) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type GUIIconOverlay

type GUIIconOverlay int

GUIIconOverlay ...

const (
	// IconOverlayNone ...
	IconOverlayNone GUIIconOverlay = iota
	// IconOverlayRAR ...
	IconOverlayRAR
	// IconOverlayZip ...
	IconOverlayZip
	// IconOverlayLocked ...
	IconOverlayLocked
	// IconOverlayHasTrainer ...
	IconOverlayHasTrainer
	// IconOverlayTrained ...
	IconOverlayTrained
	// IconOverlayWatched ...
	IconOverlayWatched
	// IconOverlayHD ...
	IconOverlayHD
)

func (GUIIconOverlay) MarshalMsg

func (z GUIIconOverlay) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (GUIIconOverlay) Msgsize

func (z GUIIconOverlay) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*GUIIconOverlay) UnmarshalMsg

func (z *GUIIconOverlay) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type KodiTime

type KodiTime struct {
	time.Time
}

KodiTime ...

func (KodiTime) MarshalMsg

func (z KodiTime) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (KodiTime) Msgsize

func (z KodiTime) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*KodiTime) UnmarshalJSON

func (s *KodiTime) UnmarshalJSON(b []byte) (err error)

UnmarshalJSON ...

func (*KodiTime) UnmarshalMsg

func (z *KodiTime) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type ListItem

type ListItem struct {
	Label       string            `json:"label"`
	Label2      string            `json:"label2"`
	Icon        string            `json:"icon"`
	Thumbnail   string            `json:"thumbnail"`
	IsPlayable  bool              `json:"is_playable"`
	Path        string            `json:"path"`
	Info        *ListItemInfo     `json:"info,omitempty"`
	Properties  map[string]string `json:"properties,omitempty"`
	Art         *ListItemArt      `json:"art,omitempty"`
	StreamInfo  *StreamInfo       `json:"stream_info,omitempty"`
	ContextMenu [][]string        `json:"context_menu,omitempty"`

	TraktAuth bool `json:"-"`
}

ListItem ...

func (*ListItem) MarshalMsg

func (z *ListItem) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*ListItem) Msgsize

func (z *ListItem) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*ListItem) UnmarshalMsg

func (z *ListItem) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type ListItemArt

type ListItemArt struct {
	Thumbnail    string `json:"thumb,omitempty"`
	Poster       string `json:"poster,omitempty"`
	TvShowPoster string `json:"tvshowposter,omitempty"`
	Banner       string `json:"banner,omitempty"`
	FanArt       string `json:"fanart,omitempty"`
	ClearArt     string `json:"clearart,omitempty"`
	Landscape    string `json:"landscape,omitempty"`
	Icon         string `json:"icon,omitempty"`
}

ListItemArt ...

func (*ListItemArt) MarshalMsg

func (z *ListItemArt) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*ListItemArt) Msgsize

func (z *ListItemArt) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*ListItemArt) UnmarshalMsg

func (z *ListItemArt) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type ListItemInfo

type ListItemInfo struct {
	// General Values that apply to all types
	Count int    `json:"count,omitempty"`
	Size  int    `json:"size,omitempty"`
	Date  string `json:"date,omitempty"`

	// Video Values
	Genre         string         `json:"genre,omitempty"`
	Year          int            `json:"year,omitempty"`
	Episode       int            `json:"episode,omitempty"`
	Season        int            `json:"season,omitempty"`
	Top250        int            `json:"top250,omitempty"`
	TrackNumber   int            `json:"tracknumber,omitempty"`
	Rating        float32        `json:"rating,omitempty"`
	PlayCount     int            `json:"playcount,omitempty"`
	Overlay       GUIIconOverlay `json:"overlay,omitempty"`
	Cast          []string       `json:"cast,omitempty"`
	CastAndRole   [][]string     `json:"castandrole,omitempty"`
	Director      string         `json:"director,omitempty"`
	MPAA          string         `json:"mpaa,omitempty"`
	Plot          string         `json:"plot,omitempty"`
	PlotOutline   string         `json:"plotoutline,omitempty"`
	Title         string         `json:"title,omitempty"`
	OriginalTitle string         `json:"originaltitle,omitempty"`
	SortTitle     string         `json:"sorttitle,omitempty"`
	Duration      int            `json:"duration,omitempty"`
	Studio        string         `json:"studio,omitempty"`
	TagLine       string         `json:"tagline,omitempty"`
	Writer        string         `json:"writer,omitempty"`
	TVShowTitle   string         `json:"tvshowtitle,omitempty"`
	Premiered     string         `json:"premiered,omitempty"`
	Status        string         `json:"status,omitempty"`
	Code          string         `json:"code,omitempty"`
	Aired         string         `json:"aired,omitempty"`
	Credits       string         `json:"credits,omitempty"`
	LastPlayed    string         `json:"lastplayed,omitempty"`
	Album         string         `json:"album,omitempty"`
	Artist        []string       `json:"artist,omitempty"`
	Votes         string         `json:"votes,omitempty"`
	Trailer       string         `json:"trailer,omitempty"`
	DateAdded     string         `json:"dateadded,omitempty"`
	DBID          int            `json:"dbid,omitempty"`
	DBTYPE        string         `json:"dbtype,omitempty"`
	Mediatype     string         `json:"mediatype,omitempty"`
	IMDBNumber    string         `json:"imdbnumber,omitempty"`

	// Music Values
	Lyrics string `json:"lyrics,omitempty"`

	// Picture Values
	PicturePath string `json:"picturepath,omitempty"`
	Exif        string `json:"exif,omitempty"`
}

ListItemInfo ...

func (*ListItemInfo) MarshalMsg

func (z *ListItemInfo) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*ListItemInfo) Msgsize

func (z *ListItemInfo) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*ListItemInfo) UnmarshalMsg

func (z *ListItemInfo) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type ListItems

type ListItems []*ListItem

ListItems ...

func (ListItems) Len

func (li ListItems) Len() int

func (ListItems) Less

func (li ListItems) Less(i, j int) bool

func (ListItems) MarshalMsg

func (z ListItems) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (ListItems) Msgsize

func (z ListItems) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (ListItems) Swap

func (li ListItems) Swap(i, j int)

func (*ListItems) UnmarshalMsg

func (z *ListItems) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type LogBackend

type LogBackend struct{}

LogBackend ...

func NewLogBackend

func NewLogBackend() *LogBackend

NewLogBackend ...

func (*LogBackend) Log

func (b *LogBackend) Log(level logging.Level, calldepth int, rec *logging.Record) error

Log ...

type Object

type Object map[string]interface{}

Object ...

type OverlayStatus

type OverlayStatus struct {
	// contains filtered or unexported fields
}

OverlayStatus ...

func NewOverlayStatus

func NewOverlayStatus() *OverlayStatus

NewOverlayStatus ...

func (*OverlayStatus) Close

func (ov *OverlayStatus) Close()

Close ...

func (*OverlayStatus) Hide

func (ov *OverlayStatus) Hide()

Hide ...

func (*OverlayStatus) Show

func (ov *OverlayStatus) Show()

Show ...

func (*OverlayStatus) Update

func (ov *OverlayStatus) Update(percent int, line1, line2, line3 string)

Update ...

type Platform

type Platform struct {
	OS      string
	Arch    string
	Version string
	Kodi    int
	Build   string
}

Platform ...

func GetPlatform

func GetPlatform() *Platform

GetPlatform ...

type PlayerItemInfo

type PlayerItemInfo struct {
	Info struct {
		ID   int    `json:"id"`
		Type string `json:"type"`
	} `json:"item"`
}

PlayerItemInfo ...

func PlayerGetItem

func PlayerGetItem(playerid int) (item *PlayerItemInfo)

PlayerGetItem ...

func (*PlayerItemInfo) MarshalMsg

func (z *PlayerItemInfo) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*PlayerItemInfo) Msgsize

func (z *PlayerItemInfo) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*PlayerItemInfo) UnmarshalMsg

func (z *PlayerItemInfo) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type Resume

type Resume struct {
	Position float64 `json:"position"`
	Total    float64 `json:"total"`
}

Resume ...

func (Resume) MarshalMsg

func (z Resume) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (Resume) Msgsize

func (z Resume) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*Resume) UnmarshalMsg

func (z *Resume) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type Setting

type Setting struct {
	Key    string `json:"key"`
	Type   string `json:"type"`
	Value  string `json:"value"`
	Option string `json:"option"`
}

Setting ...

func GetAllSettings

func GetAllSettings() (retVal []*Setting)

GetAllSettings ...

type SettingValue

type SettingValue struct {
	Value string `json:"value"`
}

SettingValue ...

func (SettingValue) MarshalMsg

func (z SettingValue) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (SettingValue) Msgsize

func (z SettingValue) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*SettingValue) UnmarshalMsg

func (z *SettingValue) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type StreamInfo

type StreamInfo struct {
	Video    *StreamInfoEntry `json:"video,omitempty"`
	Audio    *StreamInfoEntry `json:"audio,omitempty"`
	Subtitle *StreamInfoEntry `json:"subtitle,omitempty"`
}

StreamInfo ...

func (*StreamInfo) MarshalMsg

func (z *StreamInfo) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*StreamInfo) Msgsize

func (z *StreamInfo) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*StreamInfo) UnmarshalMsg

func (z *StreamInfo) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type StreamInfoEntry

type StreamInfoEntry struct {
	Codec    string  `json:"codec,omitempty"`
	Aspect   float32 `json:"aspect,omitempty"`
	Width    int     `json:"width,omitempty"`
	Height   int     `json:"height,omitempty"`
	Duration int     `json:"duration,omitempty"`
	Language string  `json:"language,omitempty"`
	Channels int     `json:"channels,omitempty"`
}

StreamInfoEntry ...

func (*StreamInfoEntry) MarshalMsg

func (z *StreamInfoEntry) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*StreamInfoEntry) Msgsize

func (z *StreamInfoEntry) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*StreamInfoEntry) UnmarshalMsg

func (z *StreamInfoEntry) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type UniqueIDs

type UniqueIDs struct {
	Unknown    string `json:"unknown"`
	TMDB       string `json:"tmdb"`
	TVDB       string `json:"tvdb"`
	IMDB       string `json:"imdb"`
	TheMovieDB string `json:"themoviedb"`
	Trakt      string `json:"trakt"`

	Kodi int
	// contains filtered or unexported fields
}

UniqueIDs ...

func (*UniqueIDs) MarshalMsg

func (z *UniqueIDs) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*UniqueIDs) Msgsize

func (z *UniqueIDs) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*UniqueIDs) UnmarshalMsg

func (z *UniqueIDs) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type VideoLibraryEpisode

type VideoLibraryEpisode struct {
	Episode *VideoLibraryEpisodeItem `json:"episodedetails"`
}

VideoLibraryEpisode ...

func (*VideoLibraryEpisode) MarshalMsg

func (z *VideoLibraryEpisode) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*VideoLibraryEpisode) Msgsize

func (z *VideoLibraryEpisode) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*VideoLibraryEpisode) UnmarshalMsg

func (z *VideoLibraryEpisode) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type VideoLibraryEpisodeItem

type VideoLibraryEpisodeItem struct {
	ID        int       `json:"episodeid"`
	Title     string    `json:"label"`
	Season    int       `json:"season"`
	Episode   int       `json:"episode"`
	TVShowID  int       `json:"tvshowid"`
	PlayCount int       `json:"playcount"`
	File      string    `json:"file"`
	DateAdded KodiTime  `json:"dateadded"`
	UniqueIDs UniqueIDs `json:"uniqueid"`
	Resume    *Resume
}

VideoLibraryEpisodeItem ...

func (*VideoLibraryEpisodeItem) MarshalMsg

func (z *VideoLibraryEpisodeItem) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*VideoLibraryEpisodeItem) Msgsize

func (z *VideoLibraryEpisodeItem) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*VideoLibraryEpisodeItem) UnmarshalMsg

func (z *VideoLibraryEpisodeItem) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type VideoLibraryEpisodes

type VideoLibraryEpisodes struct {
	Episodes []*VideoLibraryEpisodeItem `json:"episodes"`
}

VideoLibraryEpisodes ...

func VideoLibraryGetAllEpisodes

func VideoLibraryGetAllEpisodes(shows []int) (episodes *VideoLibraryEpisodes, err error)

VideoLibraryGetAllEpisodes ...

func VideoLibraryGetEpisodes

func VideoLibraryGetEpisodes(tvshowID int) (episodes *VideoLibraryEpisodes, err error)

VideoLibraryGetEpisodes ...

func (*VideoLibraryEpisodes) MarshalMsg

func (z *VideoLibraryEpisodes) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*VideoLibraryEpisodes) Msgsize

func (z *VideoLibraryEpisodes) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*VideoLibraryEpisodes) UnmarshalMsg

func (z *VideoLibraryEpisodes) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type VideoLibraryLimits

type VideoLibraryLimits struct {
	End   int `json:"end"`
	Start int `json:"start"`
	Total int `json:"total"`
}

VideoLibraryLimits ...

func (VideoLibraryLimits) MarshalMsg

func (z VideoLibraryLimits) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (VideoLibraryLimits) Msgsize

func (z VideoLibraryLimits) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*VideoLibraryLimits) UnmarshalMsg

func (z *VideoLibraryLimits) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type VideoLibraryMovieItem

type VideoLibraryMovieItem struct {
	ID         int       `json:"movieid"`
	Title      string    `json:"label"`
	IMDBNumber string    `json:"imdbnumber"`
	PlayCount  int       `json:"playcount"`
	File       string    `json:"file"`
	Year       int       `json:"year"`
	DateAdded  KodiTime  `json:"dateadded"`
	UniqueIDs  UniqueIDs `json:"uniqueid"`
	Resume     *Resume
}

VideoLibraryMovieItem ...

func (*VideoLibraryMovieItem) MarshalMsg

func (z *VideoLibraryMovieItem) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*VideoLibraryMovieItem) Msgsize

func (z *VideoLibraryMovieItem) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*VideoLibraryMovieItem) UnmarshalMsg

func (z *VideoLibraryMovieItem) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type VideoLibraryMovies

type VideoLibraryMovies struct {
	Limits *VideoLibraryLimits      `json:"limits"`
	Movies []*VideoLibraryMovieItem `json:"movies"`
}

VideoLibraryMovies ...

func VideoLibraryGetMovies

func VideoLibraryGetMovies() (movies *VideoLibraryMovies, err error)

VideoLibraryGetMovies ...

func VideoLibraryGetdaincMovies

func VideoLibraryGetdaincMovies() (movies *VideoLibraryMovies, err error)

VideoLibraryGetdaincMovies ...

func (*VideoLibraryMovies) MarshalMsg

func (z *VideoLibraryMovies) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*VideoLibraryMovies) Msgsize

func (z *VideoLibraryMovies) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*VideoLibraryMovies) UnmarshalMsg

func (z *VideoLibraryMovies) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type VideoLibrarySeason

type VideoLibrarySeason struct {
	Episode *VideoLibrarySeasonItem `json:"seasondetails"`
}

VideoLibrarySeason ...

func (*VideoLibrarySeason) MarshalMsg

func (z *VideoLibrarySeason) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*VideoLibrarySeason) Msgsize

func (z *VideoLibrarySeason) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*VideoLibrarySeason) UnmarshalMsg

func (z *VideoLibrarySeason) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type VideoLibrarySeasonItem

type VideoLibrarySeasonItem struct {
	ID        int       `json:"seasonid"`
	Title     string    `json:"label"`
	Season    int       `json:"season"`
	Episodes  int       `json:"episode"`
	TVShowID  int       `json:"tvshowid"`
	PlayCount int       `json:"playcount"`
	UniqueIDs UniqueIDs `json:"uniqueid"`
}

VideoLibrarySeasonItem ...

func (*VideoLibrarySeasonItem) MarshalMsg

func (z *VideoLibrarySeasonItem) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*VideoLibrarySeasonItem) Msgsize

func (z *VideoLibrarySeasonItem) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*VideoLibrarySeasonItem) UnmarshalMsg

func (z *VideoLibrarySeasonItem) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type VideoLibrarySeasons

type VideoLibrarySeasons struct {
	Seasons []*VideoLibrarySeasonItem `json:"seasons"`
}

VideoLibrarySeasons ...

func VideoLibraryGetAllSeasons

func VideoLibraryGetAllSeasons(shows []int) (seasons *VideoLibrarySeasons, err error)

VideoLibraryGetAllSeasons ...

func VideoLibraryGetSeasons

func VideoLibraryGetSeasons(tvshowID int) (seasons *VideoLibrarySeasons, err error)

VideoLibraryGetSeasons ...

func (*VideoLibrarySeasons) MarshalMsg

func (z *VideoLibrarySeasons) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*VideoLibrarySeasons) Msgsize

func (z *VideoLibrarySeasons) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*VideoLibrarySeasons) UnmarshalMsg

func (z *VideoLibrarySeasons) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type VideoLibraryShowItem

type VideoLibraryShowItem struct {
	ID         int       `json:"tvshowid"`
	Title      string    `json:"label"`
	IMDBNumber string    `json:"imdbnumber"`
	PlayCount  int       `json:"playcount"`
	Year       int       `json:"year"`
	Episodes   int       `json:"episode"`
	DateAdded  KodiTime  `json:"dateadded"`
	UniqueIDs  UniqueIDs `json:"uniqueid"`
}

VideoLibraryShowItem ...

func (*VideoLibraryShowItem) MarshalMsg

func (z *VideoLibraryShowItem) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*VideoLibraryShowItem) Msgsize

func (z *VideoLibraryShowItem) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*VideoLibraryShowItem) UnmarshalMsg

func (z *VideoLibraryShowItem) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type VideoLibraryShows

type VideoLibraryShows struct {
	Limits *VideoLibraryLimits     `json:"limits"`
	Shows  []*VideoLibraryShowItem `json:"tvshows"`
}

VideoLibraryShows ...

func VideoLibraryGetShows

func VideoLibraryGetShows() (shows *VideoLibraryShows, err error)

VideoLibraryGetShows ...

func VideoLibraryGetdaincShows

func VideoLibraryGetdaincShows() (shows *VideoLibraryShows, err error)

VideoLibraryGetdaincShows returns shows added by dainc

func (*VideoLibraryShows) MarshalMsg

func (z *VideoLibraryShows) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*VideoLibraryShows) Msgsize

func (z *VideoLibraryShows) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*VideoLibraryShows) UnmarshalMsg

func (z *VideoLibraryShows) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type View

type View struct {
	ContentType string    `json:"content_type"`
	Items       ListItems `json:"items"`
}

View ...

func NewView

func NewView(contentType string, items ListItems) *View

NewView ...

func (*View) MarshalMsg

func (z *View) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*View) Msgsize

func (z *View) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*View) UnmarshalMsg

func (z *View) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL