BuildFromMemory从内存中直接生成.torrent
This commit is contained in:
parent
ee2821f72e
commit
c4fcfe712c
|
@ -164,7 +164,7 @@ func (info *Info) GeneratePiecesFromMemory(byteData []byte) (err error) {
|
|||
if info.PieceLength == 0 {
|
||||
return errors.New("piece length must be non-zero")
|
||||
}
|
||||
info.Pieces, err = GeneratePiecesFromMemory(byteData, info.PieceLength,int(info.TotalLength()),nil)
|
||||
info.Pieces, err = GeneratePiecesFromMemory(byteData, info.PieceLength, int(info.TotalLength()), nil)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue