MCPcopy
hub / github.com/agalwood/Motrix / addTorrent

Method addTorrent

src/renderer/api/Api.js:187–195  ·  view source on GitHub ↗
(params)

Source from the content-addressed store, hash-verified

185 }
186
187 addTorrent (params) {
188 const {
189 torrent,
190 options
191 } = params
192 const engineOptions = formatOptionsForEngine(options)
193 const args = compactUndefined([torrent, [], engineOptions])
194 return this.client.call('addTorrent', ...args)
195 }
196
197 addMetalink (params) {
198 const {

Callers 1

addTorrentFunction · 0.80

Calls 3

formatOptionsForEngineFunction · 0.90
compactUndefinedFunction · 0.90
callMethod · 0.45

Tested by

no test coverage detected