test

package
v0.0.0-...-2e150c0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WantBase = fmt.Sprintf("%s (%d)", WantFilmInfo.Title, WantFilmInfo.Year)

filesystem

View Source
var WantFilmInfo = elements.FilmInfo{
	Imdbid: "tt1067106",
	Tmdbid: 17979,
	Title:  "A Christmas Carol",
	Year:   2009,
}

metadata

View Source
var WantFilmMeta = elements.FilmMeta{
	FilmInfo: WantFilmInfo,
	Ratings: elements.Ratings{
		Rottentomatoes: elements.Rating{
			Rating: 5.3,
			Votes:  25,
		},
		Metacritic: elements.Rating{
			Rating: 5.5,
			Votes:  32,
		},
		Imdb: elements.Rating{
			Rating: 6.8,
			Votes:  118552,
		},
	},
	Languages: []string{"English"},
	Countries: []string{"United States of America"},
}
View Source
var WantFilmMetaExtra = elements.FilmMetaExtra{
	FilmMeta: WantFilmMeta,
	Poster:   "https://image.tmdb.org/t/p/w500/t41VHjYItCYHBh2hijsTID44cNv.jpg",
}
View Source
var WantFilmMetaHash = xxhash.Sum64(mb)
View Source
var WantHttpErrs = []error{
	errors.New("error one"),
	errors.New("error two"),
}
View Source
var WantHttpErrsStr = []string{
	WantHttpErrs[0].Error(),
	WantHttpErrs[1].Error(),
}
View Source
var WantSrt = `1
00:05:00,400 --> 00:05:03,300
Valid text

2
00:05:16,400 --> 00:05:17,300
More dialogue
`
View Source
var WantSubInfo = elements.SubtitleInfo{
	Language: "English",
	FilmInfo: WantFilmInfo,
	OsHash:   "0000000000010000",
}

subtitle

View Source
var WantVideo = WantBase + ".mp4"

Functions

This section is empty.

Types

type WantHttpResponse

type WantHttpResponse struct {
	Data   any      `json:"data"`
	Errors []string `json:"errors"`
}

Jump to

Keyboard shortcuts

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