Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorx1alien <63802698+x1alien@users.noreply.github.com>2020-05-14 15:12:17 +0300
committerGitHub <noreply@github.com>2020-05-14 15:12:17 +0300
commit5bc172aa2e462b3dce8c1801f68493fe896b9cc2 (patch)
tree199a3e35284d462590cfcbdfa7e318d19161f606 /lib/torrent.js
parent90148ffa243317776f3d1a1175f3579b5e07eabb (diff)
Change parseRange.parse to parseRange
node-parse-numeric-range does not support parse function as of Jan 6, 2020. Refer commit https://github.com/euank/node-parse-numeric-range/commit/9483328128c7d639361e3395ecb8a2b21fe07de4 .
Diffstat (limited to 'lib/torrent.js')
-rw-r--r--lib/torrent.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/torrent.js b/lib/torrent.js
index 4ee7a80..1a765a1 100644
--- a/lib/torrent.js
+++ b/lib/torrent.js
@@ -480,7 +480,7 @@ class Torrent extends EventEmitter {
// Select only specified files (BEP53) http://www.bittorrent.org/beps/bep_0053.html
if (this.so) {
- const selectOnlyFiles = parseRange.parse(this.so)
+ const selectOnlyFiles = parseRange(this.so)
this.files.forEach((v, i) => {
if (selectOnlyFiles.includes(i)) this.files[i].select(true)