Documentation ¶
Index ¶
- Variables
- func CreateURI(server Host, path string) string
- func RemoveCachedToken() error
- func SelectedShows() ([]string, error)
- func SyncWatchedTv(source, destination Host) error
- func Token() string
- func TokenRequest(cred Credentials) error
- type Credentials
- type ER
- type Episode
- type Host
- type SR
- type Show
Constants ¶
This section is empty.
Variables ¶
View Source
var CacheLifetime int
CacheLifetime controls when a cached image will be refreshed in days
View Source
var ShortVersion = strings.Split(Version, "-")[0]
ShortVersion contains the version in the format "1.2.3"
View Source
var Version = "0.0.0-default"
Version contains the version of the app, this contains the version with any pre-release metadata "1.2.3-prerelease.4"
Functions ¶
func RemoveCachedToken ¶ added in v0.2.0
func RemoveCachedToken() error
RemoveCachedToken removes the cached tokenfile
func SelectedShows ¶ added in v0.3.0
SelectedShows returns the selected tv shows from the tvShowsFile
func SyncWatchedTv ¶
SyncWatchedTv synchronises the watched TV Shows
func Token ¶
func Token() string
Token requests a MyPlex authentication token from cache or from MyPlex.
func TokenRequest ¶ added in v0.2.0
func TokenRequest(cred Credentials) error
TokenRequest requests a new token from MyPlex
Types ¶
type Credentials ¶ added in v0.2.0
Credentials stores MyPlex credentials
type Episode ¶
type Episode struct { ID int `xml:"ratingKey,attr"` Name string `xml:"title,attr"` Episode int `xml:"index,attr"` Season int `xml:"parentIndex,attr"` ViewCount int `xml:"viewCount,attr"` LastWatched int `xml:"lastViewedAt,attr"` }
Episode defines the structure of a Plex TV Episode
Click to show internal directories.
Click to hide internal directories.