internal

package
v0.0.0-...-e664854 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCache

func NewCache(id elements.SubtitleInfo) (service.ServiceCache[struct{}], error)

subtitle cache factory

func Provide

func Provide(info elements.SubtitleInfo) (elements.SubtitleData, []error)

download subtitle from providers, returns on first match

Types

type SubtitleProvider

type SubtitleProvider interface {
	// search for and download a subtitle.
	Download(elements.SubtitleInfo) (io.Reader, elements.SubtitleFormat, error)
}

Directories

Path Synopsis
Package providers contains subtitle providers
Package providers contains subtitle providers

Jump to

Keyboard shortcuts

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