media

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsVideoFile

func IsVideoFile(filename string) bool

Types

type Media

type Media struct {
	Title    string
	Year     string
	Season   string
	Episode  string
	AltTitle string
	Genre    string
}

func ParseFilename

func ParseFilename(filename string, tvShow bool) (Media, error)

type TMDBMovie

type TMDBMovie struct {
	Adult            bool
	BackdropPath     string `json:"backdrop_path"`
	GenreIds         []int  `json:"genre_ids"`
	Id               int
	OriginalLanguage string `json:"original_language"`
	OriginalTitle    string `json:"original_title"`
	Overview         string
	Popularity       float32
	PosterPath       string `json:"poster_path"`
	ReleaseDate      string `json:"release_date"`
	Title            string
	Video            bool
	VoteAverage      float32 `json:"vote_average"`
	VoteCount        int     `json:"vote_count"`
}

type TMDBResponse

type TMDBResponse struct {
	Page    int
	Results []TMDBMovie
}

Jump to

Keyboard shortcuts

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