Documentation
¶
Index ¶
- func AuthRequest(root, username, code, refreshToken, grantType string) (map[string]interface{}, bool)
- func Handle(pr plexhooks.PlexResponse, user store.User)
- func HandleMovie(pr plexhooks.PlexResponse, accessToken string)
- func HandleShow(pr plexhooks.PlexResponse, accessToken string)
- type Episode
- type Ids
- type Movie
- type MovieScrobbleBody
- type MovieSearchResult
- type Season
- type Show
- type ShowInfo
- type ShowScrobbleBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthRequest ¶
func AuthRequest(root, username, code, refreshToken, grantType string) (map[string]interface{}, bool)
AuthRequest authorize the connection with Trakt
func Handle ¶
func Handle(pr plexhooks.PlexResponse, user store.User)
Handle determine if an item is a show or a movie
func HandleMovie ¶
func HandleMovie(pr plexhooks.PlexResponse, accessToken string)
HandleMovie start the scrobbling for a movie
func HandleShow ¶
func HandleShow(pr plexhooks.PlexResponse, accessToken string)
HandleShow start the scrobbling for a show
Types ¶
type Episode ¶
type Episode struct { Season int `json:"season"` Number int `json:"number"` Title string `json:"title"` Ids Ids `json:"ids"` }
Episode represent an episode
type Ids ¶
type Ids struct { Trakt int `json:"trakt"` Tvdb int `json:"tvdb"` Imdb string `json:"imdb"` Tmdb int `json:"tmdb"` Tvrage int `json:"tvrage"` }
Ids represent the IDs representing a media item accross the metadata providers
type MovieScrobbleBody ¶
MovieScrobbleBody represent the scrobbling status for a movie
type MovieSearchResult ¶
type MovieSearchResult struct {
Movie Movie
}
MovieSearchResult represent a search result for a movie
type ShowScrobbleBody ¶
ShowScrobbleBody represent the scrobbling status for a show
Click to show internal directories.
Click to hide internal directories.