mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-18 06:13:42 +00:00
fix: download panic
This commit is contained in:
1 parent
b0bd2a776a
commit
753830accf
9 files changed
+181
-67
No files matched your search
@@ -3,8 +3,9 @@ package metainfo
|
||||
import (
|
||||
"crypto/sha1"
|
||||
"encoding/json"
|
||||
"github.com/marksamman/bencode"
|
||||
"os"
|
||||
|
||||
"github.com/marksamman/bencode"
|
||||
)
|
||||
|
||||
type MetaInfo struct {
|
||||
@@ -22,9 +23,9 @@ type MetaInfo struct {
|
||||
UrlList []string `json:"url-list"`
|
||||
Info *Info `json:"info"`
|
||||
|
||||
infoHash [20]byte `json:"-"`
|
||||
totalSize uint64 `json:"-"`
|
||||
fileDetails []FileDetail `json:"-"`
|
||||
infoHash [20]byte
|
||||
totalSize uint64
|
||||
fileDetails []FileDetail
|
||||
}
|
||||
|
||||
type Info struct {
|
||||
|
||||
Reference in new issue
Block a user