Documentation ¶
Index ¶
- Constants
- type Cast
- type Collection
- type Crew
- type Episode
- type Genre
- type Keyword
- type Movie
- type Person
- type Recommend
- type TVShow
- type Video
- func (v *Video) Cast(m Movie) []Cast
- func (v *Video) Close()
- func (v *Video) CollectionMovies(c *Collection) []Movie
- func (v *Video) Collections() []Collection
- func (v *Video) Crew(m Movie) []Crew
- func (v *Video) Directing(p Person) []Movie
- func (v *Video) FindMovie(identifier string) (Movie, error)
- func (v *Video) FindMovies(identifiers []string) []Movie
- func (v *Video) Genre(name string) []Movie
- func (v *Video) Genres(m Movie) []string
- func (v *Video) HasMovies() bool
- func (v *Video) Keyword(name string) []Movie
- func (v *Video) Keywords(m Movie) []string
- func (v *Video) LastModified() time.Time
- func (v *Video) LookupCollectionName(name string) (*Collection, error)
- func (v *Video) LookupETag(etag string) (*Movie, error)
- func (v *Video) LookupIMID(imid string) (Movie, error)
- func (v *Video) LookupMovie(id int) (Movie, error)
- func (v *Video) LookupPerson(id int) (Person, error)
- func (v *Video) LookupTMID(tmid int) (Movie, error)
- func (v *Video) LookupUUID(uuid string) (Movie, error)
- func (v *Video) Movie(tmid int) (*Movie, error)
- func (v *Video) MovieBackdrop(m Movie) string
- func (v *Video) MovieCollection(m Movie) *Collection
- func (v *Video) MovieCount() int64
- func (v *Video) MoviePoster(m Movie) string
- func (v *Video) MoviePosterSmall(m Movie) string
- func (v *Video) MovieURL(m Movie) *url.URL
- func (v *Video) Movies() []Movie
- func (v *Video) Open() (err error)
- func (v *Video) Person(peid int) (*Person, error)
- func (v *Video) PersonProfile(p Person) string
- func (v *Video) Producing(p Person) []Movie
- func (v *Video) RecentlyAdded() []Movie
- func (v *Video) RecentlyReleased() []Movie
- func (v *Video) Recommend() []Recommend
- func (v *Video) Search(q string, limit ...int) []Movie
- func (v *Video) Starring(p Person) []Movie
- func (v *Video) Sync() error
- func (v *Video) SyncBackdrops(client client.Getter)
- func (v *Video) SyncPosters(client client.Getter)
- func (v *Video) SyncProfileImages(client client.Getter)
- func (v *Video) SyncSince(lastSync time.Time) error
- func (v *Video) TMDBMovieBackdrop(m Movie) string
- func (v *Video) TMDBMoviePoster(m Movie) string
- func (v *Video) TMDBMoviePosterSmall(m Movie) string
- func (v *Video) TMDBPersonProfile(p Person) string
- func (v *Video) UpdateMovie(m *Movie) error
- func (v *Video) Writing(p Person) []Movie
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 Cast ¶
type Crew ¶
type Movie ¶
type Movie struct { gorm.Model UUID string `gorm:"index:idx_movie_uuid" json:"-"` TMID int64 `gorm:"uniqueIndex:idx_movie_tmid"` IMID string Title string Date time.Time Rating string Tagline string OriginalTitle string OriginalLanguage string Overview string Budget int64 Revenue int64 Runtime int VoteAverage float32 VoteCount int BackdropPath string PosterPath string SortTitle string Key string Size int64 ETag string LastModified time.Time }
type Person ¶
type TVShow ¶
type TVShow struct { gorm.Model TVID int64 `gorm:"uniqueIndex:idx_tvshow_tvid"` Name string SortName string Date time.Time EndDate time.Time Tagline string OriginalName string OriginalLanguage string Overview string BackdropPath string PosterPath string SeasonCount int EpisodeCount int VoteAverage float32 VoteCount int }
type Video ¶
type Video struct {
// contains filtered or unexported fields
}
func (*Video) CollectionMovies ¶
func (v *Video) CollectionMovies(c *Collection) []Movie
func (*Video) Collections ¶
func (v *Video) Collections() []Collection
func (*Video) FindMovies ¶
func (*Video) LastModified ¶
func (*Video) LookupCollectionName ¶
func (v *Video) LookupCollectionName(name string) (*Collection, error)
func (*Video) MovieBackdrop ¶
func (*Video) MovieCollection ¶
func (v *Video) MovieCollection(m Movie) *Collection
func (*Video) MovieCount ¶
func (*Video) MoviePoster ¶
func (*Video) MoviePosterSmall ¶
func (*Video) PersonProfile ¶
func (*Video) RecentlyAdded ¶
func (*Video) RecentlyReleased ¶
func (*Video) SyncBackdrops ¶
func (*Video) SyncPosters ¶
func (*Video) SyncProfileImages ¶
func (*Video) TMDBMovieBackdrop ¶
func (*Video) TMDBMoviePoster ¶
func (*Video) TMDBMoviePosterSmall ¶
func (*Video) TMDBPersonProfile ¶
func (*Video) UpdateMovie ¶
Click to show internal directories.
Click to hide internal directories.