bilibili

package
v0.0.0-...-084929d Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const NAME = "bilibili"

Variables

This section is empty.

Functions

func New

Types

type BiLiBiLi

type BiLiBiLi struct {
	// contains filtered or unexported fields
}

func (*BiLiBiLi) CheckUrl

func (b *BiLiBiLi) CheckUrl(ctx context.Context, metaurl string) bool

检查链接是否有效

func (*BiLiBiLi) Download

func (b *BiLiBiLi) Download(ctx context.Context, metaurl string) ([]byte, error)

func (*BiLiBiLi) DownloadUsable

func (b *BiLiBiLi) DownloadUsable() bool

func (*BiLiBiLi) IsLogin

func (b *BiLiBiLi) IsLogin() bool

是否登陆

func (*BiLiBiLi) MaxSize

func (b *BiLiBiLi) MaxSize() int

func (*BiLiBiLi) Name

func (b *BiLiBiLi) Name() string

func (*BiLiBiLi) QrcodeLogin

func (b *BiLiBiLi) QrcodeLogin(ctx context.Context, show func(ctx context.Context, image image.Image) error) (cookie string, err error)

二维码登录

func (*BiLiBiLi) SetAuthorization

func (b *BiLiBiLi) SetAuthorization(auto string) error

func (*BiLiBiLi) SetOption

func (b *BiLiBiLi) SetOption(options ...drivercommon.Option) error

func (*BiLiBiLi) SpaceSize

func (b *BiLiBiLi) SpaceSize() drivercommon.SpaceSize

func (*BiLiBiLi) SuperEncoder

func (bjh *BiLiBiLi) SuperEncoder() []string

func (*BiLiBiLi) Upload

func (b *BiLiBiLi) Upload(ctx context.Context, block []byte) (sha1 string, err error)

func (*BiLiBiLi) UploadUsable

func (b *BiLiBiLi) UploadUsable() bool

Jump to

Keyboard shortcuts

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