diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2016-03-25 05:52:28 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2016-03-25 05:52:28 +0300 |
commit | bc690c68e1b41be56b465e5ad185ff8323d245cb (patch) | |
tree | 81eecc8fd92adb1905a35bcea7dc5448e6c43866 | |
parent | 89ddd92211ce32e909a7607647a6c22377ea781a (diff) |
use complete magnet uri
-rw-r--r-- | docs/api.md | 2 | ||||
-rw-r--r-- | docs/faq.md | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/api.md b/docs/api.md index b613d2d..0956d89 100644 --- a/docs/api.md +++ b/docs/api.md @@ -18,7 +18,7 @@ npm install webtorrent ```js var client = new WebTorrent() -var torrentId = 'magnet:?xt=urn:btih:6a9759bffd5c0af65319979fb7832189f4f3c35d' +var torrentId = 'magnet:?xt=urn:btih:6a9759bffd5c0af65319979fb7832189f4f3c35d&dn=sintel.mp4&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.fastcast.nz&tr=wss%3A%2F%2Ftracker.openwebtorrent.com&tr=wss%3A%2F%2Ftracker.webtorrent.io&ws=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2Fsintel-1024-surround.mp4' client.add(torrentId, function (torrent) { // Torrents can contain many files. Let's use the first. diff --git a/docs/faq.md b/docs/faq.md index aab0fcf..94c6ed2 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -138,7 +138,7 @@ It's easy to download a torrent and add it to the page. ```js var client = new WebTorrent() -var torrentId = 'magnet:?xt=urn:btih:6a9759bffd5c0af65319979fb7832189f4f3c35d' +var torrentId = 'magnet:?xt=urn:btih:6a9759bffd5c0af65319979fb7832189f4f3c35d&dn=sintel.mp4&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.fastcast.nz&tr=wss%3A%2F%2Ftracker.openwebtorrent.com&tr=wss%3A%2F%2Ftracker.webtorrent.io&ws=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2Fsintel-1024-surround.mp4' client.add(torrentId, function (torrent) { var file = torrent.files[0] |