diff --git a/metainfo/metainfo.go b/metainfo/metainfo.go index 24b8714a..298c5118 100644 --- a/metainfo/metainfo.go +++ b/metainfo/metainfo.go @@ -70,9 +70,7 @@ func (mi *MetaInfo) SetDefaults() { // Creates a Magnet from a MetaInfo. Optional infohash and parsed info can be provided. func (mi *MetaInfo) Magnet(infoHash *Hash, info *Info) (m Magnet) { - for _, t := range mi.UpvertedAnnounceList().DistinctValues() { - m.Trackers = append(m.Trackers, t) - } + m.Trackers = append(m.Trackers, mi.UpvertedAnnounceList().DistinctValues()...) if info != nil { m.DisplayName = info.Name }