Documentation ¶
Overview ¶
Package watchlist groups methods for retrieving items (shows and movies) form multiple watchlists Multiple watchlist types can be registered. Retrieving items from watchlists will aggregate results from all registered watchlists.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMovies ¶
func GetMovies() ([]MediaIds, error)
GetMovies retrieves movies from all watchlists then aggregates the result. Retrieved movies are added to the database to ease future requests. Duplicates are removed. Results are returned as an array of MediaIds structs
func GetTvShows ¶
func GetTvShows() ([]MediaIds, error)
GetTvShows retrieves TV Shows from all watchlists then aggregates the result. Retrieved shows are added to the database to ease future requests. Duplicates are removed. Results are returned as an array of MediaIds structs
func ImportMovies ¶
func ImportMovies(movieWatchlist []MediaIds) []MediaIds
Types ¶
type Watchlist ¶
type Watchlist interface { Status() (Module, error) GetName() string GetTvShows() ([]MediaIds, error) GetMovies() ([]MediaIds, error) }
Watchlist is the generic interface that a struct has to implement in order to be used as a watchlist in flemzerd
func GetWatchlist ¶
GetWatchlist returns the registered watchlist with name "name". An non-nil error is returned if no registered watchlists are found with the required name