Skip to content

Commit

Permalink
foundation: biliup add example
Browse files Browse the repository at this point in the history
  • Loading branch information
luxcgo committed Apr 4, 2023
1 parent e2cde61 commit 29857ec
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions foundation/biliup/example/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package main

import (
"fmt"

"github.com/go-olive/olive/foundation/biliup"
)

func main() {
err := biliup.New(biliup.Config{
CookieFilepath: "/Users/xxx/cookies.json",
VideoFilepath: `/video.mp4`,
Threads: 2,
MaxBytesPerSecond: 0,
}).Upload()
if err != nil {
fmt.Println(err)
}
}

0 comments on commit 29857ec

Please sign in to comment.