const Sintel = 'magnet:?xt=urn:btih:08ada5a7a6183aae1e09d831df6748d566095a10&dn=Sintel&tr=udp%3A%2F%2Fexplodie.org%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.empire-js.us%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.fastcast.nz&tr=wss%3A%2F%2Ftracker.openwebtorrent.com&ws=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2F&xs=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2Fsintel.torrent';
const transport = new RpcTransport('http://localhost', 9091);
const torrentApi = new TorrentApi(transport);
const response = await torrentApi.addTorrent({
filename: Sintel,
'download-dir': resolve('./downloads')
});
await torrentApi.stopTorrent(response.id);
await torrentApi.startTorrent(response.id);
// get info
const torrents = await torrentApi.getTorrents({
fields: [
TorrentFields.id,
TorrentFields.name,
TorrentFields.percentDone
]
});
```
-
Notifications
You must be signed in to change notification settings - Fork 0
em7v/transmission-rpc
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Work In Progress
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published