]> Sergey Matveev's repositories - btrtrc.git/blobdiff - spec.go
Drop support for go 1.20
[btrtrc.git] / spec.go
diff --git a/spec.go b/spec.go
index df5b06f9f4844f6d83af59fca07378317fee10c1..8cce3cb326f1ff3594b921338804f381d5a7e7cd 100644 (file)
--- a/spec.go
+++ b/spec.go
@@ -19,9 +19,11 @@ type TorrentSpec struct {
        InfoBytes []byte
        // The name to use if the Name field from the Info isn't available.
        DisplayName string
-       Webseeds    []string
-       DhtNodes    []string
-       PeerAddrs   []string
+       // WebSeed URLs. For additional options add the URLs separately with Torrent.AddWebSeeds
+       // instead.
+       Webseeds  []string
+       DhtNodes  []string
+       PeerAddrs []string
        // The combination of the "xs" and "as" fields in magnet links, for now.
        Sources []string
 
@@ -36,10 +38,6 @@ type TorrentSpec struct {
        // Whether to allow data download or upload
        DisallowDataUpload   bool
        DisallowDataDownload bool
-
-       // Custom encoder for webseed URLs
-       // Leave nil to use the default (url.QueryEscape)
-       EncodeWebSeedUrl func(string) string
 }
 
 func TorrentSpecFromMagnetUri(uri string) (spec *TorrentSpec, err error) {