From 7e2c2106e66b153893f04f228e6ecd0d4ee430c7 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Thu, 18 Feb 2021 14:37:06 +1100 Subject: [PATCH] Include webseed URLs in output of Torrent.Metainfo --- torrent.go | 7 +++++++ 1 file changed, 7 insertions(+) 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 + }(), } } -- 2.48.1