providers

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsYouTubeURL

func IsYouTubeURL(url string) bool

Types

type SaveTube added in v1.3.1

type SaveTube struct {
	Client *http.Client
}

func (*SaveTube) BaseURL added in v1.3.1

func (p *SaveTube) BaseURL() string

func (*SaveTube) GetDownloadURL added in v1.3.1

func (p *SaveTube) GetDownloadURL(url, key, downloadType, quality string) (string, error)

func (*SaveTube) Name added in v1.3.1

func (p *SaveTube) Name() string

func (*SaveTube) Stream added in v1.3.1

func (p *SaveTube) Stream(url string) (YTResults, error)

type VidVaults added in v1.2.5

type VidVaults struct {
	Client *http.Client
}

func (*VidVaults) BaseURL added in v1.2.5

func (p *VidVaults) BaseURL() string

func (*VidVaults) DoRequest added in v1.2.5

func (p *VidVaults) DoRequest(url string) (map[string]interface{}, error)

func (*VidVaults) Name added in v1.2.5

func (p *VidVaults) Name() string

func (*VidVaults) ParseResponse added in v1.2.5

func (p *VidVaults) ParseResponse(data map[string]interface{}, originalURL string) (YTResults, error)

func (*VidVaults) Stream added in v1.2.5

func (p *VidVaults) Stream(url string) (YTResults, error)

type YTResults

type YTResults struct {
	Caption   string     `json:"caption"`
	Thumbnail string     `json:"thumbnail"`
	Duration  int        `json:"duration"`
	Source    []YTSource `json:"source"`
}

type YTSource

type YTSource struct {
	URL      string `json:"url"`
	Duration int    `json:"duration"`
	Type     string `json:"type"`
	Quality  string `json:"quality"`
}

Jump to

Keyboard shortcuts

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