transcript

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: MIT Imports: 7 Imported by: 0

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 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"`
	// 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 ...

func (Transcript) List added in v0.0.2

func (t Transcript) List(videoID string) (map[string]string, error)

List ...

Jump to

Keyboard shortcuts

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