youtube

package
v0.0.0-beta Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2021 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetYouTubeDLPath

func GetYouTubeDLPath() string

Types

type VideoInfo

type VideoInfo struct {
	Artist, Track, Uploader, UploaderID, Title, ID string
	Duration                                       int64
}

func DownloadResult

func DownloadResult(result *YoutubeEntry, filePath string) (*VideoInfo, error)

func (*VideoInfo) GetThumbnail

func (v *VideoInfo) GetThumbnail() string

type YoutubeEntry

type YoutubeEntry struct {
	Title, Uploader, DisplayDuration, ID string
	Live                                 bool
}

func SearchFor

func SearchFor(searchTerm string, limit int) ([]*YoutubeEntry, error)

func (*YoutubeEntry) URL

func (result *YoutubeEntry) URL() string

Jump to

Keyboard shortcuts

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