video

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: Unlicense Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Batch added in v0.9.1

type Batch struct {
	Vids      string
	VideoList []Video
	SaveDir   string
	Quality   string
	IsSeries  bool
	VidPrefix bool
}

Batch 包含多个 Video 的信息

func (*Batch) DownloadMultiVideos added in v0.9.1

func (b *Batch) DownloadMultiVideos()

DownloadMultiVideos 下载多个视频

type Video

type Video struct {
	Vid string

	SaveDir string

	VidPrefix bool // 视频文件名是否使用具体的vid作为前缀,例如vid_filename.mp4
	// contains filtered or unexported fields
}

Video 包含视频号、标题、作者、日期等基本信息

func (*Video) DownloadSeriesVideos

func (v *Video) DownloadSeriesVideos(quality string)

DownloadSeriesVideos 下载指定清晰度的专题视频

func (*Video) DownloadSingleVideo

func (v *Video) DownloadSingleVideo(quality string)

DownloadSingleVideo 下载指定清晰度的视频,若指定的视频清晰度不存在,则尝试下载稍低的清晰度的视频

func (*Video) GetVideoInfo

func (v *Video) GetVideoInfo() bool

GetVideoInfo 获取视频的基本信息

func (*Video) ShowVideoInfo

func (v *Video) ShowVideoInfo()

ShowVideoInfo 按照格式输出视频的基本信息

Jump to

Keyboard shortcuts

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