sponsorblock

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActionTypeSkip = "skip"
	ActionTypeMute = "mute"
)

Variables

View Source
var ErrStatusCode = errors.New("invalid response status")

Functions

This section is empty.

Types

type Segment

type Segment struct {
	Segment       [2]float32 `json:"segment"`
	UUID          string     `json:"UUID"`
	Category      string     `json:"category"`
	VideoDuration float32    `json:"videoDuration"`
	ActionType    string     `json:"actionType"`
	Locked        int        `json:"locked"`
	Votes         int        `json:"votes"`
	Description   string     `json:"description"`
}

func QuerySegments

func QuerySegments(ctx context.Context, conf *config.Config, id string) ([]Segment, error)

type Video added in v0.1.0

type Video struct {
	VideoID  string    `json:"videoID"`
	Segments []Segment `json:"segments"`
}

Jump to

Keyboard shortcuts

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