Documentation ¶
Index ¶
Constants ¶
View Source
const NetfliHistorySize = 20
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a client to interact with external services
func (*Client) FetchNetflixHistory ¶
func (c *Client) FetchNetflixHistory(cfg NetflixConfig) error
FetchNetflixHistory returns the viewing history from Netflix
func (*Client) MarkAsWatched ¶
func (c *Client) MarkAsWatched(conf TraktConfig)
MarkAsWatched mark as watched all the provided media
type History ¶
type History struct { ItemsSearch map[string]struct{} `json:"search"` Items []string `json:"items"` ToProcess []*NetflixHistory `json:"-"` }
func NewHistory ¶
func NewHistory() *History
func (*History) ClearNetflixHistory ¶
func (h *History) ClearNetflixHistory()
type NetflixConfig ¶
type NetflixConfig struct { AccountID string `env:"ACCOUNT_ID"` Cookie string `env:"COOKIE,required"` URL string `env:"URL,default=https://www.netflix.com/viewingactivity"` }
NetflixConfig contains the configuration needed for Netflix
type NetflixHistory ¶
NetflixHistory contains the data from Netflix
func (*NetflixHistory) SearchQuery ¶
func (h *NetflixHistory) SearchQuery() string
SearchQuery returns the query string to use on trakt to search for the media
func (*NetflixHistory) String ¶
func (h *NetflixHistory) String() string
type TraktConfig ¶
TraktConfig contains the configuration needed for Netflix
Click to show internal directories.
Click to hide internal directories.