add encoding to .torrent default config
This commit is contained in:
parent
d8f10ed70a
commit
ffd17b70a3
|
@ -64,6 +64,7 @@ func (mi MetaInfo) Write(w io.Writer) error {
|
|||
func (mi *MetaInfo) SetDefaults() {
|
||||
mi.CreatedBy = "github.com/anacrolix/torrent"
|
||||
mi.CreationDate = time.Now().Unix()
|
||||
mi.Encoding = "UTF-8"
|
||||
}
|
||||
|
||||
// Creates a Magnet from a MetaInfo. Optional infohash and parsed info can be provided.
|
||||
|
|
Loading…
Reference in New Issue