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

Function addTorrent

src/renderer/store/modules/task.js:123–130  ·  view source on GitHub ↗
({ dispatch }, data)

Source from the content-addressed store, hash-verified

121 })
122 },
123 addTorrent ({ dispatch }, data) {
124 const { torrent, options } = data
125 return api.addTorrent({ torrent, options })
126 .then(() => {
127 dispatch('fetchList')
128 dispatch('app/updateAddTaskOptions', {}, { root: true })
129 })
130 },
131 addMetalink ({ dispatch }, data) {
132 const { metalink, options } = data
133 return api.addMetalink({ metalink, options })

Callers

nothing calls this directly

Calls 1

addTorrentMethod · 0.80

Tested by

no test coverage detected