@@ -73,10 +73,10 @@ func (c *Client) AddTorrent(f io.Reader, options *AddTorrentOptions) (*rpctypes.
7373 }
7474 args := rpctypes.AddTorrentRequest {Torrent : base64 .StdEncoding .EncodeToString (b )}
7575 if options != nil {
76- args .AddTorrentOptions . ID = options .ID
77- args .AddTorrentOptions . Stopped = options .Stopped
78- args .AddTorrentOptions . StopAfterDownload = options .StopAfterDownload
79- args .AddTorrentOptions . StopAfterMetadata = options .StopAfterMetadata
76+ args .ID = options .ID
77+ args .Stopped = options .Stopped
78+ args .StopAfterDownload = options .StopAfterDownload
79+ args .StopAfterMetadata = options .StopAfterMetadata
8080 }
8181 var reply rpctypes.AddTorrentResponse
8282 return & reply .Torrent , c .client .Call ("Session.AddTorrent" , args , & reply )
@@ -86,10 +86,10 @@ func (c *Client) AddTorrent(f io.Reader, options *AddTorrentOptions) (*rpctypes.
8686func (c * Client ) AddURI (uri string , options * AddTorrentOptions ) (* rpctypes.Torrent , error ) {
8787 args := rpctypes.AddURIRequest {URI : uri }
8888 if options != nil {
89- args .AddTorrentOptions . ID = options .ID
90- args .AddTorrentOptions . Stopped = options .Stopped
91- args .AddTorrentOptions . StopAfterDownload = options .StopAfterDownload
92- args .AddTorrentOptions . StopAfterMetadata = options .StopAfterMetadata
89+ args .ID = options .ID
90+ args .Stopped = options .Stopped
91+ args .StopAfterDownload = options .StopAfterDownload
92+ args .StopAfterMetadata = options .StopAfterMetadata
9393 }
9494 var reply rpctypes.AddURIResponse
9595 return & reply .Torrent , c .client .Call ("Session.AddURI" , args , & reply )
0 commit comments