Skip to content

Commit e4e680b

Browse files
authored
Merge pull request webtorrent#188 from vijayanandnandam/master
Fixes documentation in readme for multiscrape api
2 parents a727fd9 + cde079c commit e4e680b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ Scraping multiple torrent info is possible with a static `Client.scrape` method:
217217

218218
```js
219219
var Client = require('bittorrent-tracker')
220-
Client.scrape(announceUrl, [ infoHash1, infoHash2 ], function (err, results) {
220+
Client.scrape({ announce: announceUrl, infoHash: [ infoHash1, infoHash2 ]}, function (err, results) {
221221
results[infoHash1].announce
222222
results[infoHash1].infoHash
223223
results[infoHash1].complete

0 commit comments

Comments
 (0)