imdb

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	IMDBId string
	Type   EntryType
	Title  string
}

Entry is an entry in an IMDB watchlist

type EntryType added in v0.4.0

type EntryType string
const (
	Movie        EntryType = "movie"
	TVSeries     EntryType = "tvSeries"
	TVSpecial    EntryType = "tvSpecial"
	TVMiniSeries EntryType = "tvMiniSeries"
)

type Watchlist added in v0.6.0

type Watchlist []Entry

func (Watchlist) Filter added in v0.6.0

func (w Watchlist) Filter(mediaType ...EntryType) Watchlist

type WatchlistFetcher added in v0.5.0

type WatchlistFetcher struct {
	HTTPClient *http.Client
	URL        string
}

WatchlistFetcher fetches an IMDB watchlist and returns the entries that match a set of types.

func (WatchlistFetcher) GetWatchlist added in v0.5.0

func (f WatchlistFetcher) GetWatchlist(listID string) (Watchlist, error)

GetWatchlist queries an IMDB watchlist.

Jump to

Keyboard shortcuts

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