playcount

package
v0.0.0-...-a6eb964 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TVDBScraper ...
	TVDBScraper = iota
	// TMDBScraper ...
	TMDBScraper
	// TraktScraper ...
	TraktScraper
	// IMDBScraper ...
	IMDBScraper
)
View Source
const (
	// MovieType ...
	MovieType = iota
	// ShowType ...
	ShowType
	// SeasonType ...
	SeasonType
	// EpisodeType ...
	EpisodeType
)

Variables

View Source
var (
	// Mu is a global lock for Playcount package
	Mu = sync.RWMutex{}

	// Watched contains uint64 hashed bools
	Watched = map[uint64]bool{}
)

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

func (WatchedState) Int

func (w WatchedState) Int() (r int)

Int converts bool to int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL