video

package
v0.11.6 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Overview

Package video provides support for all movie media.

Index

Constants

View Source
const (
	FieldBudget     = "budget"
	FieldCast       = "cast"
	FieldCharacter  = "character"
	FieldCollection = "collection"
	FieldCrew       = "crew"
	FieldDate       = "date"
	FieldGenre      = "genre"
	FieldKeyword    = "keyword"
	FieldName       = "name"
	FieldRating     = "rating"
	FieldRevenue    = "revenue"
	FieldRuntime    = "runtime"
	FieldTagline    = "tagline"
	FieldTitle      = "title"
	FieldVote       = "vote"
	FieldVoteCount  = "vote_count"

	JobDirector   = "Director"
	JobNovel      = "Novel"
	JobScreenplay = "Screenplay"
	JobStory      = "Story"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Video

type Video struct {
	// contains filtered or unexported fields
}

func NewVideo

func NewVideo(config *config.Config) *Video

func (*Video) Cast

func (v *Video) Cast(m Movie) []Cast

func (*Video) Close

func (v *Video) Close()

func (*Video) CollectionMovies

func (v *Video) CollectionMovies(c *Collection) []Movie

func (*Video) Collections

func (v *Video) Collections() []Collection

func (*Video) Crew

func (v *Video) Crew(m Movie) []Crew

func (*Video) Directing

func (v *Video) Directing(p Person) []Movie

func (*Video) FindMovie

func (v *Video) FindMovie(identifier string) (Movie, error)

func (*Video) FindMovies

func (v *Video) FindMovies(identifiers []string) []Movie

func (*Video) Genre

func (v *Video) Genre(name string) []Movie

func (*Video) Genres

func (v *Video) Genres(m Movie) []string

func (*Video) HasMovies

func (v *Video) HasMovies() bool

func (*Video) Keyword

func (v *Video) Keyword(name string) []Movie

func (*Video) Keywords

func (v *Video) Keywords(m Movie) []string

func (*Video) LastModified

func (v *Video) LastModified() time.Time

func (*Video) LookupCollectionName

func (v *Video) LookupCollectionName(name string) (*Collection, error)

func (*Video) LookupETag

func (v *Video) LookupETag(etag string) (*Movie, error)

func (*Video) LookupIMID

func (v *Video) LookupIMID(imid string) (Movie, error)

func (*Video) LookupMovie

func (v *Video) LookupMovie(id int) (Movie, error)

func (*Video) LookupPerson

func (v *Video) LookupPerson(id int) (Person, error)

func (*Video) LookupTMID

func (v *Video) LookupTMID(tmid int) (Movie, error)

func (*Video) LookupUUID

func (v *Video) LookupUUID(uuid string) (Movie, error)

func (*Video) Movie

func (v *Video) Movie(tmid int) (*Movie, error)

func (*Video) MovieBackdrop

func (v *Video) MovieBackdrop(m Movie) string

func (*Video) MovieCollection

func (v *Video) MovieCollection(m Movie) *Collection

func (*Video) MovieCount

func (v *Video) MovieCount() int64

func (*Video) MoviePoster

func (v *Video) MoviePoster(m Movie) string

func (*Video) MoviePosterSmall

func (v *Video) MoviePosterSmall(m Movie) string

func (*Video) MovieURL

func (v *Video) MovieURL(m Movie) *url.URL

func (*Video) Movies

func (v *Video) Movies() []Movie

func (*Video) Open

func (v *Video) Open() (err error)

func (*Video) Person

func (v *Video) Person(peid int) (*Person, error)

func (*Video) PersonProfile

func (v *Video) PersonProfile(p Person) string

func (*Video) Producing

func (v *Video) Producing(p Person) []Movie

func (*Video) RecentlyAdded

func (v *Video) RecentlyAdded() []Movie

func (*Video) RecentlyReleased

func (v *Video) RecentlyReleased() []Movie

func (*Video) Recommend

func (v *Video) Recommend() []Recommend

func (*Video) Search

func (v *Video) Search(q string, limit ...int) []Movie

func (*Video) Starring

func (v *Video) Starring(p Person) []Movie

func (*Video) Sync

func (v *Video) Sync() error

func (*Video) SyncBackdrops

func (v *Video) SyncBackdrops(client client.Getter)

func (*Video) SyncPosters

func (v *Video) SyncPosters(client client.Getter)

func (*Video) SyncProfileImages

func (v *Video) SyncProfileImages(client client.Getter)

func (*Video) SyncSince

func (v *Video) SyncSince(lastSync time.Time) error

func (*Video) TMDBMovieBackdrop

func (v *Video) TMDBMovieBackdrop(m Movie) string

func (*Video) TMDBMoviePoster

func (v *Video) TMDBMoviePoster(m Movie) string

func (*Video) TMDBMoviePosterSmall

func (v *Video) TMDBMoviePosterSmall(m Movie) string

func (*Video) TMDBPersonProfile

func (v *Video) TMDBPersonProfile(p Person) string

func (*Video) UpdateMovie

func (v *Video) UpdateMovie(m *Movie) error

func (*Video) Writing

func (v *Video) Writing(p Person) []Movie

Jump to

Keyboard shortcuts

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