xbmc

package
v0.1.101 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 12 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 (
	XBMCLocalHost *XBMCHost = nil
	XBMCHosts               = []*XBMCHost{}

	// XBMCJSONRPCPort is a port for XBMCJSONRPC (RCP of Kodi)
	XBMCJSONRPCPort = "9090"

	// XBMCExJSONRPCPort is a port for XBMCExJSONRPC (RCP of python part of the plugin)
	XBMCExJSONRPCPort = "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 ContainsXBMCHost

func ContainsXBMCHost(host string) bool

func Init

func Init()

func RemoveXBMCHost

func RemoveXBMCHost(host string) error

Types

type ActivePlayers

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

ActivePlayers ...

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 AddonDir

type AddonDir struct {
	Info     *AddonRepositoryInfo    `xml:"info,omitempty"`
	Checksum string                  `xml:"checksum,omitempty"`
	Datadir  *AddonRepositoryDataDir `xml:"datadir,omitempty"`
}

AddonDir ...

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"`
	Dirs []*AddonDir `xml:"dir,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 ...

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 ...

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 ...

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

type Args

type Args []interface{}

Args ...

type Artworks

type Artworks struct {
	Poster    []string `json:"poster,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"`
	DiscArt   []string `json:"discart,omitempty"`
	KeyArt    []string `json:"keyart,omitempty"`
	Thumbnail []string `json:"thumb,omitempty"`
}

type ContextMenuItem

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

ContextMenuItem ...

type DialogExpirationType

type DialogExpirationType struct {
	Default int

	Existing   int
	InTorrents int
}

DialogExpirationType describes dialog autoclose types

type DialogProgress

type DialogProgress struct {
	Host *XBMCHost
	// contains filtered or unexported fields
}

DialogProgress ...

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 {
	Host *XBMCHost
	// contains filtered or unexported fields
}

DialogProgressBG ...

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 {
	Host *XBMCHost
	// contains filtered or unexported fields
}

EventPlayer ...

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 ...

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
)

type KodiTime

type KodiTime struct {
	time.Time
}

KodiTime ...

func (*KodiTime) UnmarshalJSON

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

UnmarshalJSON ...

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  *ListItemProperties  `json:"properties,omitempty"`
	Art         *ListItemArt         `json:"art,omitempty"`
	StreamInfo  *StreamInfo          `json:"stream_info,omitempty"`
	ContextMenu [][]string           `json:"context_menu,omitempty"`
	CastMembers []ListItemCastMember `json:"castmembers,omitempty"`

	TraktAuth bool `json:"-"`

	UniqueIDs *UniqueIDs `json:"uniqueids,omitempty"`
}

ListItem ...

type ListItemArt

type ListItemArt struct {
	Thumbnail         string    `json:"thumb,omitempty"`        //used for episodes only
	Poster            string    `json:"poster,omitempty"`       //poster + a clearly visible logo or name of the video
	TvShowPoster      string    `json:"tvshowposter,omitempty"` //TODO: something very old or skin specific? remove it?
	Banner            string    `json:"banner,omitempty"`       //contain recognizable characters and typically includes a clearly visible logo or name
	FanArt            string    `json:"fanart,omitempty"`       //for full screen displays, Fanart has no text on the image
	FanArts           []string  `json:"fanarts,omitempty"`
	ClearArt          string    `json:"clearart,omitempty"`
	Landscape         string    `json:"landscape,omitempty"` //fanart with text. If not available, skins can use fanart+clearlogo
	Icon              string    `json:"icon,omitempty"`
	DiscArt           string    `json:"discart,omitempty"`
	KeyArt            string    `json:"keyart,omitempty"`
	AvailableArtworks *Artworks `json:"available_artworks,omitempty"`
}

ListItemArt, see https://kodi.wiki/view/Artwork_types

type ListItemCastMember

type ListItemCastMember struct {
	Name      string `json:"name,omitempty"`
	Role      string `json:"role,omitempty"`
	Thumbnail string `json:"thumbnail,omitempty"`
	Order     int    `json:"order"`
}

ListItemCastMember represents Cast member information from TMDB

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"`
	Country       []string       `json:"country,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"`
	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 ...

type ListItemProperties

type ListItemProperties struct {
	TotalSeasons             string `json:"totalseasons,omitempty"`
	TotalEpisodes            string `json:"totalepisodes,omitempty"`
	WatchedEpisodes          string `json:"watchedepisodes,omitempty"`
	UnWatchedEpisodes        string `json:"unwatchedepisodes,omitempty"`
	SubtitlesSync            string `json:"sync,omitempty"`
	SubtitlesHearingImpaired string `json:"hearing_imp,omitempty"`
	ShowTMDBId               string `json:"showtmdbid,omitempty"`
	SpecialSort              string `json:"specialsort,omitempty"`
}

ListItemProperties ...

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) Swap

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

type LogBackend

type LogBackend struct {
	Host *XBMCHost
}

LogBackend ...

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 {
	Host *XBMCHost
	// contains filtered or unexported fields
}

OverlayStatus ...

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 ...

type PlayerItemInfo

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

PlayerItemInfo ...

type Resume

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

Resume ...

type Setting

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

Setting ...

type SettingValue

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

SettingValue ...

type StreamInfo

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

StreamInfo ...

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 ...

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"`
	Elementum  string `json:"elementum"`
	Kodi       int
}

UniqueIDs ...

type VideoLibraryEpisode

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

VideoLibraryEpisode ...

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 ...

type VideoLibraryEpisodes

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

VideoLibraryEpisodes ...

type VideoLibraryLimits

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

VideoLibraryLimits ...

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 ...

type VideoLibraryMovies

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

VideoLibraryMovies ...

type VideoLibrarySeason

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

VideoLibrarySeason ...

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 ...

type VideoLibrarySeasons

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

VideoLibrarySeasons ...

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 ...

type VideoLibraryShows

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

VideoLibraryShows ...

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 ...

type XBMCHost

type XBMCHost struct {
	Host string
}

func AddLocalXBMCHost

func AddLocalXBMCHost(host string) (*XBMCHost, error)

func AddXBMCHost

func AddXBMCHost(host string) (*XBMCHost, error)

func GetLocalXBMCHost

func GetLocalXBMCHost() (*XBMCHost, error)

func GetXBMCHost

func GetXBMCHost(host string) (*XBMCHost, error)

func GetXBMCHostWithContext

func GetXBMCHostWithContext(ctx *gin.Context) (*XBMCHost, error)

func (*XBMCHost) AddonCheck

func (h *XBMCHost) AddonCheck(addonID string) (failures int)

AddonCheck ...

func (*XBMCHost) AddonFailure

func (h *XBMCHost) AddonFailure(addonID string) (failures int)

AddonFailure ...

func (*XBMCHost) AddonSettings

func (h *XBMCHost) AddonSettings(addonID string) (retVal string)

AddonSettings ...

func (*XBMCHost) AddonSettingsOpened

func (h *XBMCHost) AddonSettingsOpened() bool

AddonSettingsOpened ...

func (*XBMCHost) CloseAllConfirmDialogs

func (h *XBMCHost) CloseAllConfirmDialogs() bool

CloseAllConfirmDialogs ...

func (*XBMCHost) CloseAllDialogs

func (h *XBMCHost) CloseAllDialogs() bool

CloseAllDialogs ...

func (*XBMCHost) ConvertLanguage

func (h *XBMCHost) ConvertLanguage(language string, format int) string

ConvertLanguage ...

func (*XBMCHost) Dialog

func (h *XBMCHost) Dialog(title string, message string) bool

Dialog ...

func (*XBMCHost) DialogBrowseSingle

func (h *XBMCHost) DialogBrowseSingle(browseType int, title string, shares string, mask string, useThumbs bool, treatAsFolder bool, defaultt string) string

DialogBrowseSingle ...

func (*XBMCHost) DialogConfirm

func (h *XBMCHost) DialogConfirm(title string, message string) bool

DialogConfirm ...

func (*XBMCHost) DialogConfirmFocused

func (h *XBMCHost) DialogConfirmFocused(title string, message string) bool

DialogConfirmFocused ...

func (*XBMCHost) DialogConfirmNonTimed

func (h *XBMCHost) DialogConfirmNonTimed(title string, message string) bool

DialogConfirmNonTimed is a regular Yes/No dialog, without time limitation applied.

func (*XBMCHost) DialogInsert

func (h *XBMCHost) DialogInsert() map[string]string

DialogInsert ...

func (*XBMCHost) DialogProgressBGCleanup

func (h *XBMCHost) DialogProgressBGCleanup()

DialogProgressBGCleanup ...

func (*XBMCHost) DialogText

func (h *XBMCHost) DialogText(title string, text string) bool

DialogText ...

func (*XBMCHost) ExecuteAddon

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

ExecuteAddon ...

func (*XBMCHost) FilesGetSources

func (h *XBMCHost) FilesGetSources() *FileSources

FilesGetSources ...

func (*XBMCHost) GetAddonDetails

func (h *XBMCHost) GetAddonDetails(addonID string) AddonInfoDetails

GetAddonDetails ...

func (*XBMCHost) GetAddonInfo

func (h *XBMCHost) GetAddonInfo() *AddonInfo

GetAddonInfo ...

func (*XBMCHost) GetAddons

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

GetAddons ...

func (*XBMCHost) GetAllSettings

func (h *XBMCHost) GetAllSettings() (retVal []*Setting)

GetAllSettings ...

func (*XBMCHost) GetCurrentView

func (h *XBMCHost) GetCurrentView() (viewMode string)

GetCurrentView ...

func (*XBMCHost) GetKodiLog

func (h *XBMCHost) GetKodiLog() []byte

GetKodiLog is returning kodi.log, read by python part

func (*XBMCHost) GetLanguage

func (h *XBMCHost) GetLanguage(format int, withRegion bool) string

GetLanguage ...

func (*XBMCHost) GetLanguageISO639_1

func (h *XBMCHost) GetLanguageISO639_1() string

GetLanguageISO639_1 ...

func (*XBMCHost) GetLocalizedString

func (h *XBMCHost) GetLocalizedString(id int) (retVal string)

GetLocalizedString ...

func (*XBMCHost) GetPlatform

func (h *XBMCHost) GetPlatform() *Platform

GetPlatform ...

func (*XBMCHost) GetRegion

func (h *XBMCHost) GetRegion() string

GetRegion ...

func (*XBMCHost) GetSettingBool

func (h *XBMCHost) GetSettingBool(id string) bool

GetSettingBool ...

func (*XBMCHost) GetSettingInt

func (h *XBMCHost) GetSettingInt(id string) int

GetSettingInt ...

func (*XBMCHost) GetSettingString

func (h *XBMCHost) GetSettingString(id string) (retVal string)

GetSettingString ...

func (*XBMCHost) GetWatchTimes

func (h *XBMCHost) GetWatchTimes() map[string]string

GetWatchTimes ...

func (*XBMCHost) GetWindowProperty

func (h *XBMCHost) GetWindowProperty(key string) string

GetWindowProperty ...

func (*XBMCHost) InfoLabel

func (h *XBMCHost) InfoLabel(label string) string

InfoLabel ...

func (*XBMCHost) InfoLabels

func (h *XBMCHost) InfoLabels(labels ...string) map[string]string

InfoLabels ...

func (*XBMCHost) InstallAddon

func (h *XBMCHost) InstallAddon(addonID string) (ret string)

InstallAddon ...

func (*XBMCHost) IsAddonEnabled

func (h *XBMCHost) IsAddonEnabled(addonID string) bool

IsAddonEnabled ...

func (*XBMCHost) IsAddonInstalled

func (h *XBMCHost) IsAddonInstalled(addonID string) bool

IsAddonInstalled ...

func (*XBMCHost) IsLocal

func (h *XBMCHost) IsLocal() bool

func (*XBMCHost) Keyboard

func (h *XBMCHost) Keyboard(args ...interface{}) string

Keyboard ...

func (*XBMCHost) ListDialog

func (h *XBMCHost) ListDialog(title string, items ...string) int

ListDialog ...

func (*XBMCHost) ListDialogLarge

func (h *XBMCHost) ListDialogLarge(title string, subject string, items ...string) int

ListDialogLarge ...

func (*XBMCHost) ListDialogWithOptions

func (h *XBMCHost) ListDialogWithOptions(autoclose, preselect int, title string, items ...string) int

ListDialogWithOptions adds autoclose and preselect to a dialog

func (*XBMCHost) Log

func (h *XBMCHost) Log(args ...interface{})

Log ...

func (*XBMCHost) NewDialogProgress

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

NewDialogProgress ...

func (*XBMCHost) NewDialogProgressBG

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

NewDialogProgressBG ...

func (*XBMCHost) NewEventPlayer

func (h *XBMCHost) NewEventPlayer() *EventPlayer

NewEventPlayer ...

func (*XBMCHost) NewLogBackend

func (h *XBMCHost) NewLogBackend() *LogBackend

NewLogBackend ...

func (*XBMCHost) NewOverlayStatus

func (h *XBMCHost) NewOverlayStatus() *OverlayStatus

NewOverlayStatus ...

func (*XBMCHost) Notify

func (h *XBMCHost) Notify(header string, message string, image string)

Notify ...

func (*XBMCHost) OpenDirectory

func (h *XBMCHost) OpenDirectory(path string)

OpenDirectory ...

func (*XBMCHost) Ping

func (h *XBMCHost) Ping() bool

Ping ...

func (*XBMCHost) PlayURL

func (h *XBMCHost) PlayURL(url string)

PlayURL ...

func (*XBMCHost) PlayURLWithLabels

func (h *XBMCHost) PlayURLWithLabels(host, url string, listItem *ListItem)

PlayURLWithLabels ...

func (*XBMCHost) PlayURLWithTimeout

func (h *XBMCHost) PlayURLWithTimeout(url string)

PlayURLWithTimeout ...

func (*XBMCHost) PlayerGetActive

func (h *XBMCHost) PlayerGetActive() int

PlayerGetActive ...

func (*XBMCHost) PlayerGetItem

func (h *XBMCHost) PlayerGetItem(playerid int) (item *PlayerItemInfo)

PlayerGetItem ...

func (*XBMCHost) PlayerGetPlayingFile

func (h *XBMCHost) PlayerGetPlayingFile() string

PlayerGetPlayingFile ...

func (*XBMCHost) PlayerGetSubtitles

func (h *XBMCHost) PlayerGetSubtitles() (ret []string)

PlayerGetSubtitles ...

func (*XBMCHost) PlayerIsPaused

func (h *XBMCHost) PlayerIsPaused() bool

PlayerIsPaused ...

func (*XBMCHost) PlayerIsPlaying

func (h *XBMCHost) PlayerIsPlaying() bool

PlayerIsPlaying ...

func (*XBMCHost) PlayerSeek

func (h *XBMCHost) PlayerSeek(position float64) (ret string)

PlayerSeek ...

func (*XBMCHost) PlayerSetSubtitles

func (h *XBMCHost) PlayerSetSubtitles(urls []string)

PlayerSetSubtitles ...

func (*XBMCHost) PlaylistClear

func (h *XBMCHost) PlaylistClear() (retVal int)

PlaylistClear ...

func (*XBMCHost) PlaylistLeft

func (h *XBMCHost) PlaylistLeft() (retVal int)

PlaylistLeft ...

func (*XBMCHost) PlaylistSize

func (h *XBMCHost) PlaylistSize() (retVal int)

PlaylistSize ...

func (*XBMCHost) Refresh

func (h *XBMCHost) Refresh() (retVal string)

Refresh ...

func (*XBMCHost) ResetRPC

func (h *XBMCHost) ResetRPC() (retVal string)

ResetRPC ...

func (*XBMCHost) SetAddonEnabled

func (h *XBMCHost) SetAddonEnabled(addonID string, enabled bool) (retval string)

SetAddonEnabled ...

func (*XBMCHost) SetEpisodePlaycount

func (h *XBMCHost) SetEpisodePlaycount(episodeID int, playcount int) (ret string)

SetEpisodePlaycount ...

func (*XBMCHost) SetEpisodeProgress

func (h *XBMCHost) SetEpisodeProgress(episodeID int, position int, total int) (ret string)

SetEpisodeProgress ...

func (*XBMCHost) SetEpisodeProgressWithDate

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

SetEpisodeProgressWithDate ...

func (*XBMCHost) SetEpisodeWatched

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

SetEpisodeWatched ...

func (*XBMCHost) SetEpisodeWatchedWithDate

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

SetEpisodeWatchedWithDate ...

func (*XBMCHost) SetFileWatched

func (h *XBMCHost) SetFileWatched(file string, position int, total int) (ret string)

SetFileWatched ...

func (*XBMCHost) SetMoviePlaycount

func (h *XBMCHost) SetMoviePlaycount(movieID int, playcount int) (ret string)

SetMoviePlaycount ...

func (*XBMCHost) SetMovieProgress

func (h *XBMCHost) SetMovieProgress(movieID int, position int, total int) (ret string)

SetMovieProgress ...

func (*XBMCHost) SetMovieProgressWithDate

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

SetMovieProgressWithDate ...

func (*XBMCHost) SetMovieWatched

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

SetMovieWatched ...

func (*XBMCHost) SetMovieWatchedWithDate

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

SetMovieWatchedWithDate ...

func (*XBMCHost) SetResolvedURL

func (h *XBMCHost) SetResolvedURL(url string)

SetResolvedURL ...

func (*XBMCHost) SetSeasonWatched

func (h *XBMCHost) SetSeasonWatched(seasonID int, playcount int) (ret string)

SetSeasonWatched marks season as watched in Kodi library

func (*XBMCHost) SetSetting

func (h *XBMCHost) SetSetting(id string, value interface{})

SetSetting ...

func (*XBMCHost) SetShowWatched

func (h *XBMCHost) SetShowWatched(showID int, playcount int) (ret string)

SetShowWatched ...

func (*XBMCHost) SetShowWatchedWithDate

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

SetShowWatchedWithDate ...

func (*XBMCHost) SetWindowProperty

func (h *XBMCHost) SetWindowProperty(key string, value string)

SetWindowProperty ...

func (*XBMCHost) SettingsGetSettingValue

func (h *XBMCHost) SettingsGetSettingValue(setting string) string

SettingsGetSettingValue ...

func (*XBMCHost) ToggleWatched

func (h *XBMCHost) ToggleWatched()

ToggleWatched toggles watched/unwatched status for Videos

func (*XBMCHost) Translate

func (h *XBMCHost) Translate(str string) (retVal string)

Translate ...

func (*XBMCHost) TranslatePath

func (h *XBMCHost) TranslatePath(path string) (retVal string)

TranslatePath ...

func (*XBMCHost) TranslateText

func (h *XBMCHost) TranslateText(str string) (retVal string)

TranslateText ...

func (*XBMCHost) UpNextNotify

func (h *XBMCHost) UpNextNotify(payload Args) string

UpNextNotify is used to ask JSONRPC from Python part to send notification to UpNext plugin

func (*XBMCHost) UpdateAddonRepos

func (h *XBMCHost) UpdateAddonRepos() (retVal string)

UpdateAddonRepos ...

func (*XBMCHost) UpdateLocalAddons

func (h *XBMCHost) UpdateLocalAddons() (ret string)

UpdateLocalAddons ...

func (*XBMCHost) UpdatePath

func (h *XBMCHost) UpdatePath(path string) (retVal string)

UpdatePath ...

func (*XBMCHost) VideoLibraryClean

func (h *XBMCHost) VideoLibraryClean() (retVal string)

VideoLibraryClean ...

func (*XBMCHost) VideoLibraryCleanDirectory

func (h *XBMCHost) VideoLibraryCleanDirectory(directory string, content string, showDialogs bool) (retVal string)

VideoLibraryCleanDirectory initiates Kodi library cleanup for specific removed directory

func (*XBMCHost) VideoLibraryGetAllEpisodes

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

VideoLibraryGetAllEpisodes ...

func (*XBMCHost) VideoLibraryGetAllSeasons

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

VideoLibraryGetAllSeasons ...

func (*XBMCHost) VideoLibraryGetElementumMovies

func (h *XBMCHost) VideoLibraryGetElementumMovies() (movies *VideoLibraryMovies, err error)

VideoLibraryGetElementumMovies ...

func (*XBMCHost) VideoLibraryGetElementumShows

func (h *XBMCHost) VideoLibraryGetElementumShows() (shows *VideoLibraryShows, err error)

VideoLibraryGetElementumShows returns shows added by Elementum

func (*XBMCHost) VideoLibraryGetEpisodes

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

VideoLibraryGetEpisodes ...

func (*XBMCHost) VideoLibraryGetMovies

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

VideoLibraryGetMovies ...

func (*XBMCHost) VideoLibraryGetSeasons

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

VideoLibraryGetSeasons ...

func (*XBMCHost) VideoLibraryGetShows

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

VideoLibraryGetShows ...

func (*XBMCHost) VideoLibraryRemoveEpisode

func (h *XBMCHost) VideoLibraryRemoveEpisode(id int) (retVal string)

VideoLibraryRemoveEpisode ...

func (*XBMCHost) VideoLibraryRemoveMovie

func (h *XBMCHost) VideoLibraryRemoveMovie(id int) (retVal string)

VideoLibraryRemoveMovie ...

func (*XBMCHost) VideoLibraryRemoveTVShow

func (h *XBMCHost) VideoLibraryRemoveTVShow(id int) (retVal string)

VideoLibraryRemoveTVShow ...

func (*XBMCHost) VideoLibraryScan

func (h *XBMCHost) VideoLibraryScan() (retVal string)

VideoLibraryScan ...

func (*XBMCHost) VideoLibraryScanDirectory

func (h *XBMCHost) VideoLibraryScanDirectory(directory string, showDialogs bool) (retVal string)

VideoLibraryScanDirectory ...

func (*XBMCHost) WaitForSettingsClosed

func (h *XBMCHost) WaitForSettingsClosed()

Jump to

Keyboard shortcuts

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