Add Info "name.utf-8" field
Comes up frequently with non-English torrents
This commit is contained in:
parent
859f670964
commit
a1072bfee9
|
@ -16,6 +16,7 @@ type Info struct {
|
||||||
PieceLength int64 `bencode:"piece length"` // BEP3
|
PieceLength int64 `bencode:"piece length"` // BEP3
|
||||||
Pieces []byte `bencode:"pieces"` // BEP3
|
Pieces []byte `bencode:"pieces"` // BEP3
|
||||||
Name string `bencode:"name"` // BEP3
|
Name string `bencode:"name"` // BEP3
|
||||||
|
NameUtf8 string `bencode:"name.utf-8,omitempty"`
|
||||||
Length int64 `bencode:"length,omitempty"` // BEP3, mutually exclusive with Files
|
Length int64 `bencode:"length,omitempty"` // BEP3, mutually exclusive with Files
|
||||||
Private *bool `bencode:"private,omitempty"` // BEP27
|
Private *bool `bencode:"private,omitempty"` // BEP27
|
||||||
// TODO: Document this field.
|
// TODO: Document this field.
|
||||||
|
|
Loading…
Reference in New Issue