Versions in this module Expand all Collapse all v0 v0.1.0 Apr 5, 2024 Changes in this version + var ErrUnsupportedLanguage error = errors.New("given language is not supported for url") + type TranscriptTextChunk struct + Duration float64 + End string + Start string + Text string type Video + func GetVideoWithLanguage(url, languageCode string) (*Video, error) v0.0.2 Mar 28, 2024 Changes in this version + var ErrCaptionsNotFound error = errors.New("no captions found for url") + var ErrTranscriptNotFound error = errors.New("no trancript found for given url") type AvailableLanguage + func GetAvailableCaptionLanguages(url string) ([]AvailableLanguage, error) + type TextChunk struct + Duration float64 + End string + Start string + Text string + func GetVideoTranscript(url string, language string) ([]TextChunk, error) + type Video struct + Metadata *VideoMetadata + Transcript []TextChunk + func GetVideo(url string) (*Video, error) + func GetVideoWithTranscript(url string, language string) (*Video, error) + type VideoMetadata struct + Author string + ChannelId string + IsLiveContent bool + IsPrivate bool + Keywords []string + LengthSeconds string + ShortDescription string + Thumbnail struct{ ... } + Title string + VideoId string + ViewCount string + func GetVideoMetadata(url string) (*VideoMetadata, error) v0.0.1 Jan 18, 2024 Changes in this version + type AvailableLanguage struct + Code string + Name string + func GetAvailableLanguages(url string) ([]AvailableLanguage, error) + type Transcript struct + Text []struct{ ... } + XMLName xml.Name + func GetTranscription(url string, language string) (*Transcript, error)