video_dow

package
v0.0.0-...-cd9759f Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetLogOutput

func SetLogOutput(w io.Writer)

SetLogOutput :Set logger writer

func YoutubeDow

func YoutubeDow(url, path, proxy string) error

Types

type Youtube

type Youtube struct {
	DebugMode  bool
	StreamList []stream
	VideoID    string

	DownloadPercent chan int64

	Proxy string
	// contains filtered or unexported fields
}

func NewYoutube

func NewYoutube(debug bool, proxy string) *Youtube

NewYoutube :Initialize youtube package object

func (*Youtube) DecodeURL

func (y *Youtube) DecodeURL(url string) error

DecodeURL : Decode youtube URL to retrieval video information.

func (*Youtube) StartDownload

func (y *Youtube) StartDownload(destFile string) error

StartDownload : Starting download video to specific address.

func (*Youtube) Write

func (y *Youtube) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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