Documentation ¶
Overview ¶
Package trakt implements the Trakt.tv API
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { DataPath string ClientID string ClientSecret string IsAuthenticated bool // contains filtered or unexported fields }
API represents the Trakt API
type Season ¶
Season represents a season that was reported as (partially) watched on Trakt
func (*Season) FindEpisode ¶
FindEpisode tries to find if a (partially) watched season on Trakt contains an episode with a specified number
type User ¶
type User struct { Name string WatchedShows []WatchedShow }
User represents the Trakt User
func (*User) FindWatchedShowByIMDBID ¶
func (user *User) FindWatchedShowByIMDBID(imdbid string) *WatchedShow
FindWatchedShowByTVDBID returns a watched show for this user by IMDb id
func (*User) FindWatchedShowByName ¶
func (user *User) FindWatchedShowByName(name string) *WatchedShow
FindWatchedShowByName returns a watched show for this user by name
func (*User) FindWatchedShowByTVDBID ¶
func (user *User) FindWatchedShowByTVDBID(tvdbid int) *WatchedShow
FindWatchedShowByTVDBID returns a watched show for this user by TVDB id
func (*User) GetWatchedShows ¶
GetWatchedShows returns the watched shows for this user
type WatchedShow ¶
type WatchedShow struct { Show show `json:"show"` Seasons []Season `json:"seasons"` }
WatchedShow represents a show that reported watched on Trakt
func (*WatchedShow) FindSeason ¶
func (w *WatchedShow) FindSeason(seasonNumber int) *Season
FindSeason tries to find if a watched show on Trakt contains a season with a specified number