}
}
if spec.DisplayName != "" {
- t.DisplayName = spec.DisplayName
+ t.displayName = spec.DisplayName
}
// Try to merge in info we have on the torrent. Any err left will
// terminate the function.
// mirror their respective URLs from the announce-list metainfo key.
Trackers [][]tracker.Client
// Name used if the info name isn't available.
- DisplayName string
+ displayName string
// The bencoded bytes of the info dict.
MetaData []byte
// Each element corresponds to the 16KiB metadata pieces. If true, we have
if t.haveInfo() {
return t.Info.Name
}
- return t.DisplayName
+ return t.displayName
}
func (t *torrent) pieceState(index int) (ret PieceState) {