diff options
Diffstat (limited to 'examples/node-save-to-file-system.js')
-rw-r--r-- | examples/node-save-to-file-system.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/node-save-to-file-system.js b/examples/node-save-to-file-system.js index 1d5e7e6..a2b1974 100644 --- a/examples/node-save-to-file-system.js +++ b/examples/node-save-to-file-system.js @@ -2,11 +2,11 @@ var WebTorrent = require('webtorrent') var fs = require('fs') var client = new WebTorrent() -var magnetUri = 'magnet:?xt=urn:btih:d2474e86c95b19b8bcfdb92bc12c9d44667cfa36' +var magnetUri = 'magnet:?xt=urn:btih:6a9759bffd5c0af65319979fb7832189f4f3c35d' client.download(magnetUri, function (torrent) { // Got torrent metadata! - console.log('Torrent info hash:', torrent.infoHash) + console.log('Torrent magnet link:', torrent.magnetURI) torrent.files.forEach(function (file) { // Stream each file to the disk |