https://github.com/Erope/BaiduPCS-Go/
--aria2, -a 启用aria2下载,停用自带下载
--aria2url value, --au value aria2的url (default: "http://localhost:6800/jsonrpc")
--aria2secret value, --as value aria2-RPC的secret,默认为空
-a参数控制aria2是否开启,-au控制aria2-RPC的URL,-as控制aria2-RPC的令牌
注意,这个url是基于Baidu-PCS运行的主机而言的,并非基于客户端
开启后默认的下载列表会失效,请自行使用其他软件来控制下载
最高线程上限设置为了16线程,因为默认的Aria2的源码中写的就是16线程,超过会报错,建议仅使用4线程下载以防拉黑
如果不会配置Aria2,建议暂时还是不要尝试
例子:
./BaiduPCS-Go -a -au "http://10.0.0.1:6800/jsonrpc" -as "xxxxxxxxxxxxxxxxxxxxx"
怎么一直没人加呢...
本文作者:卖女孩的小火柴 - 搬砖中
本文链接:https://www.shinenet.cn/archives/131.html
最后修改时间:2020-09-18 15:26:45
本站未注明转载的文章均为原创,并采用 CC BY-NC-SA 4.0 授权协议,转载请注明来源,谢谢!
C:/Users/Administrator/go/pkg/mod/github.com/!geert!johan/[email protected]/box.go:110
github.com/Erope/BaiduPCS-Go/internal/pcsweb.StartServer(0x14b3, 0x4000182001, 0x7041b4, 0x3b) D:/Desktop/BaiduPCS-Go-3.7.4/BaiduPCS-Go-3.7.4/internal/pcsweb/pcsweb.go:27 +0xd58
main.main.func1(0x40001bcf20) D:/Desktop/BaiduPCS-Go-3.7.4/BaiduPCS-Go-3.7.4/main.go:166 +0x7c
github.com/urfave/cli.HandleAction(0x5e96a0, 0x7150c0, 0x40001bcf20, 0x40001bcf20, 0x0) C:/Users/Administrator/go/pkg/mod/github.com/urfave/[email protected]/app.go:528 +0x5c
github.com/urfave/cli.(*App).Run(0x4000216700, 0x400018a010, 0x1, 0x1, 0x0, 0x0) C:/Users/Administrator/go/pkg/mod/github.com/urfave/[email protected]/app.go:288 +0x458
main.main() D:/Desktop/BaiduPCS-Go-3.7.4/BaiduPCS-Go-3.7.4/main.go:1372 +0x3a08
求解 C:/Go/src/net/http/server.go:1801 +0xfc
panic(0x632e00, 0x4000a664e0) C:/Go/src/runtime/panic.go:975 +0x420
github.com/GeertJohan/go%2erice.(*Box).MustString(...) C:/Users/admin/go/pkg/mod/github.com/!geert!johan/[email protected]/box.go:331
github.com/Erope/BaiduPCS-Go/internal/pcsweb.boxTmplParse(0x6df99b, 0x5, 0x40004f6ad8, 0x1, 0x1, 0xcd800) C:/Users/admin/go/src/github.com/Erope/BaiduPCS-Go/internal/pcsweb/utils.go:80 +0xe0
github.com/Erope/BaiduPCS-Go/internal/pcsweb.indexPage(0x7bc7e0, 0x40000fc380, 0x40001d4e00) C:/Users/admin/go/src/github.com/Erope/BaiduPCS-Go/internal/pcsweb/pcsweb.go:67 +0x6c
github.com/Erope/BaiduPCS-Go/internal/pcsweb.rootMiddleware(0x7bc7e0, 0x40000fc380, 0x40001d4e00) C:/Users/admin/go/src/github.com/Erope/BaiduPCS-Go/internal/pcsweb/middleware.go:59 +0x150
net/http.HandlerFunc.ServeHTTP(0x713eb0, 0x7bc7e0, 0x40000fc380, 0x40001d4e00) C:/Go/src/net/http/server.go:2042 +0x40
net/http.(*ServeMux).ServeHTTP(0xba9a80, 0x7bc7e0, 0x40000fc380, 0x40001d4e00) C:/Go/src/net/http/server.go:2417 +0x190
net/http.serverHandler.ServeHTTP(0x40000fc2a0, 0x7bc7e0, 0x40000fc380, 0x40001d4e00) C:/Go/src/net/http/server.go:2843 +0xbc
net/http.(*conn).serve(0x40000b1ae0, 0x7beba0, 0x4000a1af80) C:/Go/src/net/http/server.go:1925 +0x6f4
created by net/http.(*Server).Serve C:/Go/src/net/http/server.go:2969 +0x2e8
2020/12/31 14:41:01 http: panic serving 10.8.0.2:48974: open index.html: file does not exist C:/Go/src/net/http/server.go:1801 +0xfc
panic(0x632e00, 0x4000b00390) C:/Go/src/runtime/panic.go:975 +0x420
github.com/GeertJohan/go%2erice.(*Box).MustString(...) C:/Users/admin/go/pkg/mod/github.com/!geert!johan/[email protected]/box.go:331
github.com/Erope/BaiduPCS-Go/internal/pcsweb.boxTmplParse(0x6df99b, 0x5, 0x40004faad8, 0x1, 0x1, 0xcd800) C:/Users/admin/go/src/github.com/Erope/BaiduPCS-Go/internal/pcsweb/utils.go:80 +0xe0
github.com/Erope/BaiduPCS-Go/internal/pcsweb.indexPage(0x7bc7e0, 0x4000b1a000, 0x4000b08000) C:/Users/admin/go/src/github.com/Erope/BaiduPCS-Go/internal/pcsweb/pcsweb.go:67 +0x6c
github.com/Erope/BaiduPCS-Go/internal/pcsweb.rootMiddleware(0x7bc7e0, 0x4000b1a000, 0x4000b08000) C:/Users/admin/go/src/github.com/Erope/BaiduPCS-Go/internal/pcsweb/middleware.go:59 +0x150
net/http.HandlerFunc.ServeHTTP(0x713eb0, 0x7bc7e0, 0x4000b1a000, 0x4000b08000) C:/Go/src/net/http/server.go:2042 +0x40
net/http.(*ServeMux).ServeHTTP(0xba9a80, 0x7bc7e0, 0x4000b1a000, 0x4000b08000) C:/Go/src/net/http/server.go:2417 +0x190
net/http.serverHandler.ServeHTTP(0x40000fc2a0, 0x7bc7e0, 0x4000b1a000, 0x4000b08000) C:/Go/src/net/http/server.go:2843 +0xbc
net/http.(*conn).serve(0x4000132000, 0x7beba0, 0x4000b02000) C:/Go/src/net/http/server.go:1925 +0x6f4
created by net/http.(*Server).Serve C:/Go/src/net/http/server.go:2969 +0x2e8
2020/12/31 14:41:01 http: panic serving 10.8.0.2:48980: open index.html: file does not exist C:/Go/src/net/http/server.go:1801 +0xfc
panic(0x632e00, 0x4000b00720) C:/Go/src/runtime/panic.go:975 +0x420
github.com/GeertJohan/go%2erice.(*Box).MustString(...) C:/Users/admin/go/pkg/mod/github.com/!geert!johan/[email protected]/box.go:331
github.com/Erope/BaiduPCS-Go/internal/pcsweb.boxTmplParse(0x6df99b, 0x5, 0x40004faad8, 0x1, 0x1, 0xcd800) C:/Users/admin/go/src/github.com/Erope/BaiduPCS-Go/internal/pcsweb/utils.go:80 +0xe0
github.com/Erope/BaiduPCS-Go/internal/pcsweb.indexPage(0x7bc7e0, 0x4000b1a0e0, 0x4000b08100) C:/Users/admin/go/src/github.com/Erope/BaiduPCS-Go/internal/pcsweb/pcsweb.go:67 +0x6c
github.com/Erope/BaiduPCS-Go/internal/pcsweb.rootMiddleware(0x7bc7e0, 0x4000b1a0e0, 0x4000b08100) C:/Users/admin/go/src/github.com/Erope/BaiduPCS-Go/internal/pcsweb/middleware.go:59 +0x150
net/http.HandlerFunc.ServeHTTP(0x713eb0, 0x7bc7e0, 0x4000b1a0e0, 0x4000b08100) C:/Go/src/net/http/server.go:2042 +0x40
net/http.(*ServeMux).ServeHTTP(0xba9a80, 0x7bc7e0, 0x4000b1a0e0, 0x4000b08100) C:/Go/src/net/http/server.go:2417 +0x190
net/http.serverHandler.ServeHTTP(0x40000fc2a0, 0x7bc7e0, 0x4000b1a0e0, 0x4000b08100) C:/Go/src/net/http/server.go:2843 +0xbc
net/http.(*conn).serve(0x40000b1b80, 0x7beba0, 0x4000b021c0) C:/Go/src/net/http/server.go:1925 +0x6f4
created by net/http.(*Server).Serve C:/Go/src/net/http/server.go:2969 +0x2e8
2020/12/31 14:41:01 http: panic serving 10.8.0.2:48982: open index.html: file does not exist C:/Go/src/net/http/server.go:1801 +0xfc
panic(0x632e00, 0x4000b8a390) C:/Go/src/runtime/panic.go:975 +0x420
github.com/GeertJohan/go%2erice.(*Box).MustString(...) C:/Users/admin/go/pkg/mod/github.com/!geert!johan/[email protected]/box.go:331
github.com/Erope/BaiduPCS-Go/internal/pcsweb.boxTmplParse(0x6df99b, 0x5, 0x4000b84ad8, 0x1, 0x1, 0xcd800) C:/Users/admin/go/src/github.com/Erope/BaiduPCS-Go/internal/pcsweb/utils.go:80 +0xe0
github.com/Erope/BaiduPCS-Go/internal/pcsweb.indexPage(0x7bc7e0, 0x4000ba6000, 0x4000b92000) C:/Users/admin/go/src/github.com/Erope/BaiduPCS-Go/internal/pcsweb/pcsweb.go:67 +0x6c
github.com/Erope/BaiduPCS-Go/internal/pcsweb.rootMiddleware(0x7bc7e0, 0x4000ba6000, 0x4000b92000) C:/Users/admin/go/src/github.com/Erope/BaiduPCS-Go/internal/pcsweb/middleware.go:59 +0x150
net/http.HandlerFunc.ServeHTTP(0x713eb0, 0x7bc7e0, 0x4000ba6000, 0x4000b92000) C:/Go/src/net/http/server.go:2042 +0x40
net/http.(*ServeMux).ServeHTTP(0xba9a80, 0x7bc7e0, 0x4000ba6000, 0x4000b92000) C:/Go/src/net/http/server.go:2417 +0x190
net/http.serverHandler.ServeHTTP(0x40000fc2a0, 0x7bc7e0, 0x4000ba6000, 0x4000b92000) C:/Go/src/net/http/server.go:2843 +0xbc
net/http.(*conn).serve(0x4000b0c140, 0x7beba0, 0x4000b8c000) C:/Go/src/net/http/server.go:1925 +0x6f4
created by net/http.(*Server).Serve C:/Go/src/net/http/server.go:2969 +0x2e8
2020/12/31 14:41:06 http: panic serving 10.8.0.2:48994: open index.html: file does not exist C:/Go/src/net/http/server.go:1801 +0xfc
panic(0x632e00, 0x4000b8a720) C:/Go/src/runtime/panic.go:975 +0x420
github.com/GeertJohan/go%2erice.(*Box).MustString(...) C:/Users/admin/go/pkg/mod/github.com/!geert!johan/[email protected]/box.go:331
github.com/Erope/BaiduPCS-Go/internal/pcsweb.boxTmplParse(0x6df99b, 0x5, 0x4000b84ad8, 0x1, 0x1, 0xcd800) C:/Users/admin/go/src/github.com/Erope/BaiduPCS-Go/internal/pcsweb/utils.go:80 +0xe0
github.com/Erope/BaiduPCS-Go/internal/pcsweb.indexPage(0x7bc7e0, 0x4000ba60e0, 0x4000b92100) C:/Users/admin/go/src/github.com/Erope/BaiduPCS-Go/internal/pcsweb/pcsweb.go:67 +0x6c
github.com/Erope/BaiduPCS-Go/internal/pcsweb.rootMiddleware(0x7bc7e0, 0x4000ba60e0, 0x4000b92100) C:/Users/admin/go/src/github.com/Erope/BaiduPCS-Go/internal/pcsweb/middleware.go:59 +0x150
net/http.HandlerFunc.ServeHTTP(0x713eb0, 0x7bc7e0, 0x4000ba60e0, 0x4000b92100) C:/Go/src/net/http/server.go:2042 +0x40
net/http.(*ServeMux).ServeHTTP(0xba9a80, 0x7bc7e0, 0x4000ba60e0, 0x4000b92100) C:/Go/src/net/http/server.go:2417 +0x190
net/http.serverHandler.ServeHTTP(0x40000fc2a0, 0x7bc7e0, 0x4000ba60e0, 0x4000b92100) C:/Go/src/net/http/server.go:2843 +0xbc
net/http.(*conn).serve(0x40000b1c20, 0x7beba0, 0x4000b8c1c0) C:/Go/src/net/http/server.go:1925 +0x6f4
created by net/http.(*Server).Serve C:/Go/src/net/http/server.go:2969 +0x2e8
RicePack() {
go get github.com/GeertJohan/go.rice go get github.com/GeertJohan/go.rice/rice export PATH=$GOPATH/bin:$PATH rice -i ./internal/pcsweb append --exec "$output/$1/$2"
}