Documentation
¶
Index ¶
- func EpisodatePopulateEpisodesMetadata(show *Show)
- func EpisodatePopulateShowMetadata(show *Show)
- func GetJson[T any](request Request, data T) T
- func Keys[K comparable, V any](m map[K]V) []K
- func MergeMaps[K comparable, V any](maps ...map[K]V) map[K]V
- func Perform(request Request) (*http.Response, bool)
- func SanitizeFilename(filename string) string
- func ScrapePage(request Request, selector string, handler func(int, *goquery.Selection))
- func Soup(text string, selector string, handler func(int, *goquery.Selection))
- func WrapString(s string, lim uint) string
- func WrapStringReguardlessly(s string, width uint) string
- type Episode
- type Metadata
- type Request
- type Show
- type Video
- type VideoProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EpisodatePopulateEpisodesMetadata ¶ added in v0.0.4
func EpisodatePopulateEpisodesMetadata(show *Show)
Gets episode description from episodate api Fills in the episodes metadata of the show.Episodes array
func EpisodatePopulateShowMetadata ¶ added in v0.0.4
func EpisodatePopulateShowMetadata(show *Show)
Gets show description from episodate api Fills in the show metadata
func Keys ¶ added in v0.0.5
func Keys[K comparable, V any](m map[K]V) []K
Return list of keys of a map
func MergeMaps ¶
func MergeMaps[K comparable, V any](maps ...map[K]V) map[K]V
func SanitizeFilename ¶ added in v0.0.4
func ScrapePage ¶
func WrapString ¶ added in v0.0.4
WrapString wraps the given string within lim width in characters.
Wrapping is currently naive and only happens at white-space. A future version of the library will implement smarter wrapping. This means that pathological cases can dramatically reach past the limit, such as a very long word.
func WrapStringReguardlessly ¶ added in v0.0.4
Wrap reguardles of spaces
Types ¶
type Request ¶
Click to show internal directories.
Click to hide internal directories.