From 14ad2e437d856f59190ef1e7bc45f45fb06d99ce Mon Sep 17 00:00:00 2001 From: ze0s <43699394+zze0s@users.noreply.github.com> Date: Mon, 19 Aug 2024 15:05:10 +0200 Subject: [PATCH] feat(methods): AddTorrent opt sequentialdownload (#33) --- domain.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/domain.go b/domain.go index 7b83a5f..73b1a49 100644 --- a/domain.go +++ b/domain.go @@ -274,6 +274,7 @@ type TorrentAddOptions struct { LimitSeedTime int64 Rename string FirstLastPiecePrio bool + SequentialDownload bool } func (o *TorrentAddOptions) Prepare() map[string]string { @@ -332,6 +333,10 @@ func (o *TorrentAddOptions) Prepare() map[string]string { options["firstLastPiecePrio"] = strconv.FormatBool(o.FirstLastPiecePrio) + if o.SequentialDownload { + options["sequentialDownload"] = "true" + } + return options }