playcount

package
v0.1.106 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 3 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]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

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