Documentation ¶
Index ¶
- Constants
- Variables
- func ContainsXBMCHost(host string) bool
- func Init()
- func RemoveXBMCHost(host string) error
- type ActivePlayers
- type Addon
- type AddonDir
- type AddonExtension
- type AddonImport
- type AddonInfo
- type AddonInfoDetails
- type AddonList
- type AddonRepositoryDataDir
- type AddonRepositoryInfo
- type AddonSkinResolution
- type AddonText
- type AddonsList
- type AdvancedSettings
- type Args
- type Artworks
- type ContextMenuItem
- type DialogExpirationType
- type DialogProgress
- type DialogProgressBG
- type EventPlayer
- type FileSource
- type FileSources
- type GUIIconOverlay
- type KodiTime
- type ListItem
- type ListItemArt
- type ListItemCastMember
- type ListItemInfo
- type ListItemProperties
- type ListItems
- type LogBackend
- type Object
- type OverlayStatus
- type Platform
- type PlayerItemInfo
- type Resume
- type Setting
- type SettingValue
- type StreamInfo
- type StreamInfoEntry
- type UniqueIDs
- type VideoLibraryEpisode
- type VideoLibraryEpisodeItem
- type VideoLibraryEpisodes
- type VideoLibraryLimits
- type VideoLibraryMovieItem
- type VideoLibraryMovies
- type VideoLibrarySeason
- type VideoLibrarySeasonItem
- type VideoLibrarySeasons
- type VideoLibraryShowItem
- type VideoLibraryShows
- type View
- type XBMCHost
- func (h *XBMCHost) AddonCheck(addonID string) (failures int)
- func (h *XBMCHost) AddonFailure(addonID string) (failures int)
- func (h *XBMCHost) AddonSettings(addonID string) (retVal string)
- func (h *XBMCHost) AddonSettingsOpened() bool
- func (h *XBMCHost) CloseAllConfirmDialogs() bool
- func (h *XBMCHost) CloseAllDialogs() bool
- func (h *XBMCHost) ConvertLanguage(language string, format int) string
- func (h *XBMCHost) Dialog(title string, message string) bool
- func (h *XBMCHost) DialogBrowseSingle(browseType int, title string, shares string, mask string, useThumbs bool, ...) string
- func (h *XBMCHost) DialogConfirm(title string, message string) bool
- func (h *XBMCHost) DialogConfirmFocused(title string, message string) bool
- func (h *XBMCHost) DialogConfirmNonTimed(title string, message string) bool
- func (h *XBMCHost) DialogInsert() map[string]string
- func (h *XBMCHost) DialogProgressBGCleanup()
- func (h *XBMCHost) DialogText(title string, text string) bool
- func (h *XBMCHost) ExecuteAddon(addonID string, args ...interface{})
- func (h *XBMCHost) FilesGetSources() *FileSources
- func (h *XBMCHost) GetAddonDetails(addonID string) AddonInfoDetails
- func (h *XBMCHost) GetAddonInfo() *AddonInfo
- func (h *XBMCHost) GetAddons(args ...interface{}) *AddonsList
- func (h *XBMCHost) GetAllSettings() (retVal []*Setting)
- func (h *XBMCHost) GetCurrentView() (viewMode string)
- func (h *XBMCHost) GetKodiLog() []byte
- func (h *XBMCHost) GetLanguage(format int, withRegion bool) string
- func (h *XBMCHost) GetLanguageISO639_1() string
- func (h *XBMCHost) GetLocalizedString(id int) (retVal string)
- func (h *XBMCHost) GetPlatform() *Platform
- func (h *XBMCHost) GetRegion() string
- func (h *XBMCHost) GetSettingBool(id string) bool
- func (h *XBMCHost) GetSettingInt(id string) int
- func (h *XBMCHost) GetSettingString(id string) (retVal string)
- func (h *XBMCHost) GetWatchTimes() map[string]string
- func (h *XBMCHost) GetWindowProperty(key string) string
- func (h *XBMCHost) InfoLabel(label string) string
- func (h *XBMCHost) InfoLabels(labels ...string) map[string]string
- func (h *XBMCHost) InstallAddon(addonID string) (ret string)
- func (h *XBMCHost) IsAddonEnabled(addonID string) bool
- func (h *XBMCHost) IsAddonInstalled(addonID string) bool
- func (h *XBMCHost) IsLocal() bool
- func (h *XBMCHost) Keyboard(args ...interface{}) string
- func (h *XBMCHost) ListDialog(title string, items ...string) int
- func (h *XBMCHost) ListDialogLarge(title string, subject string, items ...string) int
- func (h *XBMCHost) ListDialogWithOptions(autoclose, preselect int, title string, items ...string) int
- func (h *XBMCHost) Log(args ...interface{})
- func (h *XBMCHost) NewDialogProgress(title, line1, line2, line3 string) *DialogProgress
- func (h *XBMCHost) NewDialogProgressBG(title, message string, translations ...string) *DialogProgressBG
- func (h *XBMCHost) NewEventPlayer() *EventPlayer
- func (h *XBMCHost) NewLogBackend() *LogBackend
- func (h *XBMCHost) NewOverlayStatus() *OverlayStatus
- func (h *XBMCHost) Notify(header string, message string, image string)
- func (h *XBMCHost) OpenDirectory(path string)
- func (h *XBMCHost) Ping() bool
- func (h *XBMCHost) PlayURL(url string)
- func (h *XBMCHost) PlayURLWithLabels(host, url string, listItem *ListItem)
- func (h *XBMCHost) PlayURLWithTimeout(url string)
- func (h *XBMCHost) PlayerGetActive() int
- func (h *XBMCHost) PlayerGetItem(playerid int) (item *PlayerItemInfo)
- func (h *XBMCHost) PlayerGetPlayingFile() string
- func (h *XBMCHost) PlayerGetSubtitles() (ret []string)
- func (h *XBMCHost) PlayerIsPaused() bool
- func (h *XBMCHost) PlayerIsPlaying() bool
- func (h *XBMCHost) PlayerSeek(position float64) (ret string)
- func (h *XBMCHost) PlayerSetSubtitles(urls []string)
- func (h *XBMCHost) PlaylistClear() (retVal int)
- func (h *XBMCHost) PlaylistLeft() (retVal int)
- func (h *XBMCHost) PlaylistSize() (retVal int)
- func (h *XBMCHost) Refresh() (retVal string)
- func (h *XBMCHost) ResetRPC() (retVal string)
- func (h *XBMCHost) SetAddonEnabled(addonID string, enabled bool) (retval string)
- func (h *XBMCHost) SetEpisodePlaycount(episodeID int, playcount int) (ret string)
- func (h *XBMCHost) SetEpisodeProgress(episodeID int, position int, total int) (ret string)
- func (h *XBMCHost) SetEpisodeProgressWithDate(episodeID int, position int, total int, dt time.Time) (ret string)
- func (h *XBMCHost) SetEpisodeWatched(episodeID int, playcount int, position int, total int) (ret string)
- func (h *XBMCHost) SetEpisodeWatchedWithDate(episodeID int, playcount int, position int, total int, dt time.Time) (ret string)
- func (h *XBMCHost) SetFileProgress(file string, position int, total int) (ret string)
- func (h *XBMCHost) SetFileWatched(file string, playcount int, position int, total int) (ret string)
- func (h *XBMCHost) SetMoviePlaycount(movieID int, playcount int) (ret string)
- func (h *XBMCHost) SetMovieProgress(movieID int, position int, total int) (ret string)
- func (h *XBMCHost) SetMovieProgressWithDate(movieID int, position int, total int, dt time.Time) (ret string)
- func (h *XBMCHost) SetMovieWatched(movieID int, playcount int, position int, total int) (ret string)
- func (h *XBMCHost) SetMovieWatchedWithDate(movieID int, playcount int, position int, total int, dt time.Time) (ret string)
- func (h *XBMCHost) SetResolvedURL(url string)
- func (h *XBMCHost) SetSeasonWatched(seasonID int, playcount int) (ret string)
- func (h *XBMCHost) SetSetting(id string, value interface{})
- func (h *XBMCHost) SetShowWatched(showID int, playcount int) (ret string)
- func (h *XBMCHost) SetShowWatchedWithDate(showID int, playcount int, dt time.Time) (ret string)
- func (h *XBMCHost) SetWindowProperty(key string, value string)
- func (h *XBMCHost) SettingsGetSettingValue(setting string) string
- func (h *XBMCHost) ToggleWatched()
- func (h *XBMCHost) Translate(str string) (retVal string)
- func (h *XBMCHost) TranslatePath(path string) (retVal string)
- func (h *XBMCHost) TranslateText(str string) (retVal string)
- func (h *XBMCHost) UpNextNotify(payload Args) string
- func (h *XBMCHost) UpdateAddonRepos() (retVal string)
- func (h *XBMCHost) UpdateLocalAddons() (ret string)
- func (h *XBMCHost) UpdatePath(path string) (retVal string)
- func (h *XBMCHost) VideoLibraryClean() (retVal string)
- func (h *XBMCHost) VideoLibraryCleanDirectory(directory string, content string, showDialogs bool) (retVal string)
- func (h *XBMCHost) VideoLibraryGetAllEpisodes(shows []int) (episodes *VideoLibraryEpisodes, err error)
- func (h *XBMCHost) VideoLibraryGetAllSeasons(shows []int) (seasons *VideoLibrarySeasons, err error)
- func (h *XBMCHost) VideoLibraryGetElementumMovies() (movies *VideoLibraryMovies, err error)
- func (h *XBMCHost) VideoLibraryGetElementumShows() (shows *VideoLibraryShows, err error)
- func (h *XBMCHost) VideoLibraryGetEpisodes(tvshowID int) (episodes *VideoLibraryEpisodes, err error)
- func (h *XBMCHost) VideoLibraryGetMovies() (movies *VideoLibraryMovies, err error)
- func (h *XBMCHost) VideoLibraryGetSeasons(tvshowID int) (seasons *VideoLibrarySeasons, err error)
- func (h *XBMCHost) VideoLibraryGetShows() (shows *VideoLibraryShows, err error)
- func (h *XBMCHost) VideoLibraryHasMovies() (ret bool, err error)
- func (h *XBMCHost) VideoLibraryHasShows() (ret bool, err error)
- func (h *XBMCHost) VideoLibraryRemoveEpisode(id int) (retVal string)
- func (h *XBMCHost) VideoLibraryRemoveMovie(id int) (retVal string)
- func (h *XBMCHost) VideoLibraryRemoveTVShow(id int) (retVal string)
- func (h *XBMCHost) VideoLibraryScan() (retVal string)
- func (h *XBMCHost) VideoLibraryScanDirectory(directory string, showDialogs bool) (retVal string)
- func (h *XBMCHost) WaitForSettingsClosed()
Constants ¶
const ( // LogDebug ... LogDebug = iota // LogInfo ... LogInfo // LogNotice ... LogNotice // LogWarning ... LogWarning // LogError ... LogError // LogSevere ... LogSevere // LogFatal ... LogFatal // LogNone ... LogNone )
const ( // Iso639_1 ... Iso639_1 = iota // Iso639_2 ... Iso639_2 // EnglishName ... EnglishName )
Variables ¶
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" )
var ( // KodiVersion saves Kodi platform KodiVersion = 0 // DialogAutoclose determines number of seconds to wait // until DialogConfirm should be automatically closed DialogAutoclose = 0 )
var ( // DialogExpiration sets time (in second) for autoclose setting DialogExpiration = DialogExpirationType{ Existing: 7, InTorrents: 7, } )
var Results map[string]chan interface{}
Results ...
Functions ¶
func ContainsXBMCHost ¶
func RemoveXBMCHost ¶
Types ¶
type ActivePlayers ¶
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 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 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 Artworks ¶
type Artworks struct { Poster []string `json:"poster,omitempty"` Banner []string `json:"banner,omitempty"` FanArt []string `json:"fanart,omitempty"` ClearArt []string `json:"clearart,omitempty"` ClearLogo []string `json:"clearlogo,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 ¶
ContextMenuItem ...
type DialogExpirationType ¶
DialogExpirationType describes dialog autoclose types
type DialogProgress ¶
type DialogProgress struct { Host *XBMCHost // contains filtered or unexported fields }
DialogProgress ...
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 ...
type EventPlayer ¶
type EventPlayer struct { Host *XBMCHost // contains filtered or unexported fields }
EventPlayer ...
type FileSource ¶ added in v0.1.104
FileSource represents source for library media files
type FileSources ¶
type FileSources struct { Limits struct { End int `json:"end"` Start int `json:"start"` Total int `json:"total"` } `json:"limits"` Sources []FileSource `json:"sources"` }
FileSources represent list of library sources for media files
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 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"` ClearLogo string `json:"clearlogo,omitempty"` //has the distinctive font associated with the video and is uncluttered by other images 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"` ResumeTime string `json:"resumetime,omitempty"` TotalTime string `json:"totaltime,omitempty"` }
ListItemProperties ...
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 OverlayStatus ¶
type OverlayStatus struct { Host *XBMCHost // contains filtered or unexported fields }
OverlayStatus ...
func (*OverlayStatus) Update ¶
func (ov *OverlayStatus) Update(percent int, line1, line2, line3 string)
Update ...
type PlayerItemInfo ¶
type PlayerItemInfo struct { Info struct { ID int `json:"id"` Type string `json:"type"` } `json:"item"` }
PlayerItemInfo ...
type Setting ¶
type Setting struct { Key string `json:"key"` Type string `json:"type"` Value string `json:"value"` Option string `json:"option"` }
Setting ...
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"` LastPlayed KodiTime `json:"lastplayed"` 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"` LastPlayed KodiTime `json:"lastplayed"` 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"` LastPlayed KodiTime `json:"lastplayed"` DateAdded KodiTime `json:"dateadded"` UniqueIDs UniqueIDs `json:"uniqueid"` }
VideoLibraryShowItem ...
type VideoLibraryShows ¶
type VideoLibraryShows struct { Limits *VideoLibraryLimits `json:"limits"` Shows []*VideoLibraryShowItem `json:"tvshows"` }
VideoLibraryShows ...
type XBMCHost ¶
type XBMCHost struct {
Host string
}
func AddLocalXBMCHost ¶
func AddXBMCHost ¶
func GetLocalXBMCHost ¶
func GetXBMCHost ¶
func (*XBMCHost) AddonCheck ¶
AddonCheck ...
func (*XBMCHost) AddonFailure ¶
AddonFailure ...
func (*XBMCHost) AddonSettings ¶
AddonSettings ...
func (*XBMCHost) AddonSettingsOpened ¶
AddonSettingsOpened ...
func (*XBMCHost) CloseAllConfirmDialogs ¶
CloseAllConfirmDialogs ...
func (*XBMCHost) ConvertLanguage ¶
ConvertLanguage ...
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 ¶
DialogConfirm ...
func (*XBMCHost) DialogConfirmFocused ¶
DialogConfirmFocused ...
func (*XBMCHost) DialogConfirmNonTimed ¶
DialogConfirmNonTimed is a regular Yes/No dialog, without time limitation applied.
func (*XBMCHost) DialogInsert ¶
DialogInsert ...
func (*XBMCHost) DialogProgressBGCleanup ¶
func (h *XBMCHost) DialogProgressBGCleanup()
DialogProgressBGCleanup ...
func (*XBMCHost) DialogText ¶
DialogText ...
func (*XBMCHost) ExecuteAddon ¶
ExecuteAddon ...
func (*XBMCHost) FilesGetSources ¶
func (h *XBMCHost) FilesGetSources() *FileSources
FilesGetSources ...
func (*XBMCHost) GetAddonDetails ¶
func (h *XBMCHost) GetAddonDetails(addonID string) AddonInfoDetails
GetAddonDetails ...
func (*XBMCHost) GetAddons ¶
func (h *XBMCHost) GetAddons(args ...interface{}) *AddonsList
GetAddons ...
func (*XBMCHost) GetAllSettings ¶
GetAllSettings ...
func (*XBMCHost) GetCurrentView ¶
GetCurrentView ...
func (*XBMCHost) GetKodiLog ¶
GetKodiLog is returning kodi.log, read by python part
func (*XBMCHost) GetLanguage ¶
GetLanguage ...
func (*XBMCHost) GetLanguageISO639_1 ¶
GetLanguageISO639_1 ...
func (*XBMCHost) GetLocalizedString ¶
GetLocalizedString ...
func (*XBMCHost) GetSettingBool ¶
GetSettingBool ...
func (*XBMCHost) GetSettingString ¶
GetSettingString ...
func (*XBMCHost) GetWatchTimes ¶
GetWatchTimes ...
func (*XBMCHost) GetWindowProperty ¶
GetWindowProperty ...
func (*XBMCHost) InfoLabels ¶
InfoLabels ...
func (*XBMCHost) InstallAddon ¶
InstallAddon ...
func (*XBMCHost) IsAddonEnabled ¶
IsAddonEnabled ...
func (*XBMCHost) IsAddonInstalled ¶
IsAddonInstalled ...
func (*XBMCHost) ListDialog ¶
ListDialog ...
func (*XBMCHost) ListDialogLarge ¶
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) 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) NewOverlayStatus ¶
func (h *XBMCHost) NewOverlayStatus() *OverlayStatus
NewOverlayStatus ...
func (*XBMCHost) PlayURLWithLabels ¶
PlayURLWithLabels ...
func (*XBMCHost) PlayURLWithTimeout ¶
PlayURLWithTimeout ...
func (*XBMCHost) PlayerGetItem ¶
func (h *XBMCHost) PlayerGetItem(playerid int) (item *PlayerItemInfo)
PlayerGetItem ...
func (*XBMCHost) PlayerGetPlayingFile ¶
PlayerGetPlayingFile ...
func (*XBMCHost) PlayerGetSubtitles ¶
PlayerGetSubtitles ...
func (*XBMCHost) PlayerSeek ¶
PlayerSeek ...
func (*XBMCHost) PlayerSetSubtitles ¶
PlayerSetSubtitles ...
func (*XBMCHost) SetAddonEnabled ¶
SetAddonEnabled ...
func (*XBMCHost) SetEpisodePlaycount ¶
SetEpisodePlaycount ...
func (*XBMCHost) SetEpisodeProgress ¶
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) SetFileProgress ¶ added in v0.1.104
SetFileProgress sets file progress in Kodi library Note: Setting a valid lastplayed without a playcount will force playcount to 1. since we just set progress, we do not set lastplayed or playcount.
func (*XBMCHost) SetFileWatched ¶
SetFileWatched ...
func (*XBMCHost) SetMoviePlaycount ¶
SetMoviePlaycount ...
func (*XBMCHost) SetMovieProgress ¶
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) SetSeasonWatched ¶
SetSeasonWatched marks season as watched in Kodi library
func (*XBMCHost) SetSetting ¶
SetSetting ...
func (*XBMCHost) SetShowWatched ¶
SetShowWatched ...
func (*XBMCHost) SetShowWatchedWithDate ¶
SetShowWatchedWithDate ...
func (*XBMCHost) SetWindowProperty ¶
SetWindowProperty ...
func (*XBMCHost) SettingsGetSettingValue ¶
SettingsGetSettingValue ...
func (*XBMCHost) ToggleWatched ¶
func (h *XBMCHost) ToggleWatched()
ToggleWatched toggles watched/unwatched status for Videos
func (*XBMCHost) TranslatePath ¶
TranslatePath ...
func (*XBMCHost) TranslateText ¶
TranslateText ...
func (*XBMCHost) UpNextNotify ¶
UpNextNotify is used to ask JSONRPC from Python part to send notification to UpNext plugin
func (*XBMCHost) UpdateAddonRepos ¶
UpdateAddonRepos ...
func (*XBMCHost) UpdateLocalAddons ¶
UpdateLocalAddons ...
func (*XBMCHost) UpdatePath ¶
UpdatePath ...
func (*XBMCHost) VideoLibraryClean ¶
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) VideoLibraryHasMovies ¶ added in v0.1.104
VideoLibraryHasMovies checks whether Kodi library has any movie
func (*XBMCHost) VideoLibraryHasShows ¶ added in v0.1.104
VideoLibraryHasShows checks whether Kodi library has any TV show
func (*XBMCHost) VideoLibraryRemoveEpisode ¶
VideoLibraryRemoveEpisode ...
func (*XBMCHost) VideoLibraryRemoveMovie ¶
VideoLibraryRemoveMovie ...
func (*XBMCHost) VideoLibraryRemoveTVShow ¶
VideoLibraryRemoveTVShow ...
func (*XBMCHost) VideoLibraryScan ¶
VideoLibraryScan ...
func (*XBMCHost) VideoLibraryScanDirectory ¶
VideoLibraryScanDirectory ...
func (*XBMCHost) WaitForSettingsClosed ¶
func (h *XBMCHost) WaitForSettingsClosed()