Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CaptionList ¶
type CaptionList struct {
PCTR PlayerCaptionsTracklistRenderer `json:"playerCaptionsTracklistRenderer"`
}
CaptionList ...
type CaptionTrack ¶
type CaptionTrack struct { BaseURL string `json:"baseUrl"` Name Name `json:"name"` VssID string `json:"vssId"` LanguageCode string `json:"languageCode"` Kind string `json:"kind,omitempty"` IsTranslatable bool `json:"isTranslatable"` }
CaptionTrack ...
type Fetcher ¶ added in v0.0.2
type Fetcher interface { Fetch(videoID, language string) Transcript List(videoID string) (map[string]string, error) }
Fetcher ...
type PlayerCaptionsTracklistRenderer ¶
type PlayerCaptionsTracklistRenderer struct {
CaptionTracks []CaptionTrack `json:"captionTracks"`
}
PlayerCaptionsTracklistRenderer ...
type Transcript ¶
type Transcript struct { XMLName xml.Name `xml:"transcript"` Text []string `xml:"text"` // contains filtered or unexported fields }
Transcript ...
func NewTrasncript ¶ added in v0.0.2
func NewTrasncript(client client.Requester) Transcript
NewTrasncript ...
func (Transcript) Fetch ¶ added in v0.0.2
func (t Transcript) Fetch(videoID, language string) Transcript
Fetch ...
Click to show internal directories.
Click to hide internal directories.