t.metadataHave = make([]bool, (bytes+(1<<14)-1)/(1<<14))
}
+// The current working name for the torrent. Either the name in the info dict,
+// or a display name given such as by the dn value in a magnet link, or "".
func (t *torrent) Name() string {
if t.haveInfo() {
return t.Info.Name
if t.DisplayName != "" {
return t.DisplayName
}
- return t.InfoHash.HexString()
+ return ""
}
func (t *torrent) pieceStatusChar(index int) byte {