Skip to content

Commit

Permalink
feat(methods): AddTorrent opt sequentialdownload (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
zze0s authored Aug 19, 2024
1 parent 60e6817 commit 14ad2e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ type TorrentAddOptions struct {
LimitSeedTime int64
Rename string
FirstLastPiecePrio bool
SequentialDownload bool
}

func (o *TorrentAddOptions) Prepare() map[string]string {
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 14ad2e4

Please sign in to comment.