biliUpload

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2022 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const Threads = 4

Variables

View Source
var Header = http.Header{
	"User-Agent": []string{"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 Chrome/63.0.3239.108"},
	"Referer":    []string{"https://www.bilibili.com"},
	"Connection": []string{"keep-alive"},
}

Functions

func CookieLoginCheck

func CookieLoginCheck(u User) error

func FolderUpload

func FolderUpload(folder string, u User) ([]*uploadRes, error)

func MainUpload

func MainUpload(uploadPath string, Biliup Biliup) error

Types

type Biliup

type Biliup struct {
	User        User
	Lives       string
	UploadLines string
	Threads     int
	VideoInfos
}

type UploadedVideoInfo

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

type User

type User struct {
	SESSDATA        string
	BiliJct         string
	DedeUserID      string
	DedeuseridCkmd5 string
	AccessToken     string
}

type VideoInfos

type VideoInfos struct {
	Tid         int
	Title       string
	Tag         []string
	Source      string
	Cover       string
	CoverPath   string
	Description string
	Copyright   int
}

Jump to

Keyboard shortcuts

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