Documentation ¶
Index ¶
- Constants
- Variables
- type WatchedState
- func GetWatchedEpisodeByTMDB(id int, season, episode int) (ret WatchedState)
- func GetWatchedEpisodeByTVDB(id int, season, episode int) (ret WatchedState)
- func GetWatchedEpisodeByTrakt(id int, season, episode int) (ret WatchedState)
- func GetWatchedMovieByIMDB(id string) (ret WatchedState)
- func GetWatchedMovieByTMDB(id int) (ret WatchedState)
- func GetWatchedMovieByTrakt(id int) (ret WatchedState)
- func GetWatchedSeasonByTMDB(id int, season int) (ret WatchedState)
- func GetWatchedSeasonByTVDB(id int, season, episode int) (ret WatchedState)
- func GetWatchedSeasonByTrakt(id int, season int) (ret WatchedState)
- func GetWatchedShowByTMDB(id int) (ret WatchedState)
- func GetWatchedShowByTVDB(id int) (ret WatchedState)
- func GetWatchedShowByTrakt(id int) (ret WatchedState)
Constants ¶
const ( // TVDBScraper ... TVDBScraper = iota // TMDBScraper ... TMDBScraper // TraktScraper ... TraktScraper // IMDBScraper ... IMDBScraper )
const ( // MovieType ... MovieType = iota // ShowType ... ShowType // SeasonType ... SeasonType // EpisodeType ... EpisodeType )
Variables ¶
var ( // Mu is a global lock for Playcount package Mu = sync.RWMutex{} // Watched contains uint64 hashed bools Watched = map[uint64]WatchedState{} )
Watched stores all "watched" items
Functions ¶
This section is empty.
Types ¶
type WatchedState ¶
type WatchedState bool
WatchedState just a simple bool with Int() conversion
func GetWatchedEpisodeByTMDB ¶
func GetWatchedEpisodeByTMDB(id int, season, episode int) (ret WatchedState)
GetWatchedEpisodeByTMDB checks whether item is watched
func GetWatchedEpisodeByTVDB ¶
func GetWatchedEpisodeByTVDB(id int, season, episode int) (ret WatchedState)
GetWatchedEpisodeByTVDB checks whether item is watched
func GetWatchedEpisodeByTrakt ¶
func GetWatchedEpisodeByTrakt(id int, season, episode int) (ret WatchedState)
GetWatchedEpisodeByTrakt checks whether item is watched
func GetWatchedMovieByIMDB ¶
func GetWatchedMovieByIMDB(id string) (ret WatchedState)
GetWatchedMovieByIMDB checks whether item is watched
func GetWatchedMovieByTMDB ¶
func GetWatchedMovieByTMDB(id int) (ret WatchedState)
GetWatchedMovieByTMDB checks whether item is watched
func GetWatchedMovieByTrakt ¶
func GetWatchedMovieByTrakt(id int) (ret WatchedState)
GetWatchedMovieByTrakt checks whether item is watched
func GetWatchedSeasonByTMDB ¶
func GetWatchedSeasonByTMDB(id int, season int) (ret WatchedState)
GetWatchedSeasonByTMDB checks whether item is watched
func GetWatchedSeasonByTVDB ¶
func GetWatchedSeasonByTVDB(id int, season, episode int) (ret WatchedState)
GetWatchedSeasonByTVDB checks whether item is watched
func GetWatchedSeasonByTrakt ¶
func GetWatchedSeasonByTrakt(id int, season int) (ret WatchedState)
GetWatchedSeasonByTrakt checks whether item is watched
func GetWatchedShowByTMDB ¶
func GetWatchedShowByTMDB(id int) (ret WatchedState)
GetWatchedShowByTMDB checks whether item is watched
func GetWatchedShowByTVDB ¶
func GetWatchedShowByTVDB(id int) (ret WatchedState)
GetWatchedShowByTVDB checks whether item is watched
func GetWatchedShowByTrakt ¶
func GetWatchedShowByTrakt(id int) (ret WatchedState)
GetWatchedShowByTrakt checks whether item is watched