transcript

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListTranscripts

func ListTranscripts(videoID string, client *http.Client) ([]string, error)

ListTranscripts ...

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 Name

type Name struct {
	SimpleText string `json:"simpleText"`
}

Name ...

type PlayerCaptionsTracklistRenderer

type PlayerCaptionsTracklistRenderer struct {
	CaptionTracks []CaptionTrack `json:"captionTracks"`
}

PlayerCaptionsTracklistRenderer ...

type Transcript

type Transcript struct {
	XMLName xml.Name `xml:"transcript"`
	Text    []string `xml:"text"`
}

Transcript ...

func FetchTranscript

func FetchTranscript(videoID, language string, client *http.Client) Transcript

FetchTranscript ...

Jump to

Keyboard shortcuts

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