Documentation
¶
Overview ¶
Package artwork serves posters and backdrops from local files, a cache of remote images, or pictures embedded in audio files.
Index ¶
Constants ¶
const ( LibretroThumbnails = "https://thumbnails.libretro.com/" LibretroThumbnailsMirror = "https://raw.githubusercontent.com/libretro-thumbnails/" )
LibretroThumbnails is libretro's thumbnail site, and LibretroThumbnailsMirror the copy of it libretro keeps on GitHub, one repository per system.
Variables ¶
var FailedWait = time.Hour
FailedWait is how long an image that couldn't be had (a cover art site that doesn't have it, a video a still can't be taken from) waits before it's tried again.
Functions ¶
func Large ¶
Large is src at the size a 4K TV shows it: TMDB's original for backdrops and its largest sized poster. Other sources are already as big as they get.
func LibretroMirror ¶ added in v0.2.11
LibretroMirror is the address of a libretro thumbnail on GitHub, for src on libretro's thumbnail site, or "". The site's "<System>/<Kind>/<Game>.png" is in the repository named after the system, with its spaces as underscores.
func LibretroRepo ¶ added in v0.2.11
LibretroRepo is the name of the GitHub repository that holds a system's thumbnails: "Nintendo - Game Boy" is Nintendo_-_Game_Boy.
Types ¶
type Cache ¶
type Cache struct {
Dir string
FFmpeg string
Client *http.Client
// Chosen loads a cover an admin picked, for a "chosen:" source; nil
// has none.
Chosen func(ctx context.Context, src string) ([]byte, error)
// contains filtered or unexported fields
}