Documentation
¶
Index ¶
- func CacheAge(cacheDir, packID, sourceID string) time.Duration
- func FilterVideos(vids []content.Video, query string) []content.Video
- func FindVideo(vids []content.Video, id string) *content.Video
- func LoadCache(cacheDir, packID, sourceID string) ([]content.Video, error)
- func ResolveAll(sources []content.YouTubeSource, cacheDir string) ([]content.Video, error)
- func SaveCache(cacheDir, packID, sourceID string, vids []content.Video) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterVideos ¶
FilterVideos returns all videos whose title, description, or tags contain query (case-insensitive).
func FindVideo ¶
FindVideo returns a pointer to the first video with the given composite ID, or nil if not found.
func ResolveAll ¶
ResolveAll loads all cached videos for the given sources from cacheDir. Sources that have no cache file are silently skipped.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.