We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b57a26 commit 2ee240eCopy full SHA for 2ee240e
client.js
@@ -155,8 +155,10 @@ Client.scrape = function (opts, cb) {
155
})
156
157
opts.infoHash = Array.isArray(opts.infoHash)
158
- ? opts.infoHash.map(function (infoHash) { return new Buffer(infoHash, 'hex') })
159
- : new Buffer(opts.infoHash, 'hex')
+ ? opts.infoHash.map(function (infoHash) {
+ return new Buffer(String(infoHash), 'hex')
160
+ })
161
+ : new Buffer(String(opts.infoHash), 'hex')
162
client.scrape({ infoHash: opts.infoHash })
163
return client
164
}
0 commit comments