From: Matt Joiner Date: Thu, 18 Feb 2021 03:37:06 +0000 (+1100) Subject: Include webseed URLs in output of Torrent.Metainfo X-Git-Tag: v1.26.0-alpha~18 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=7e2c2106e66b153893f04f228e6ecd0d4ee430c7;p=btrtrc.git Include webseed URLs in output of Torrent.Metainfo --- diff --git a/torrent.go b/torrent.go index a4ae4b48..b30da881 100644 --- a/torrent.go +++ b/torrent.go @@ -674,6 +674,13 @@ func (t *Torrent) newMetaInfo() metainfo.MetaInfo { return nil } }(), + UrlList: func() []string { + ret := make([]string, 0, len(t.webSeeds)) + for url := range t.webSeeds { + ret = append(ret, url) + } + return ret + }(), } }