Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cant see downloaded files #1163

Closed
nativeB opened this issue Jul 26, 2017 · 1 comment
Closed

cant see downloaded files #1163

nativeB opened this issue Jul 26, 2017 · 1 comment

Comments

@nativeB
Copy link

@nativeB nativeB commented Jul 26, 2017

now im just a novice just started node barely months ago
i im trying to use web torrent locally gotp bittorrent-tracker up
and this is my code

seeding

var dragDrop = require('drag-drop')
var WebTorrent = require('webtorrent')

var client = new WebTorrent()

// When user drops files on the browser, create a new torrent and start seeding it!
dragDrop('body', function (files) {
client.seed(files, { name: 'works',
comment:'works',
createdBy:'me' ,
announce: ['http://localhost:8000/announce', 'udp://0.0.0.0:8000', 'udp://localhost:8000','ws://localhost:8000']
},
function (torrent) {
console.log('Client is seeding ' + torrent.magnetURI)
})
})

downloading

var WebTorrent = require('webtorrent')
var client = new WebTorrent()

var magnetURI ='magnet:?xt=urn:btih:178c016bb2a1ecd1ccb68a0129de6b4b6ef9f58e&dn=works&tr=http%3A%2F%2Flocalhost%3A8000%2Fannounce&tr=udp%3A%2F%2F0.0.0.0%3A8000&tr=udp%3A%2F%2Flocalhost%3A8000&tr=ws%3A%2F%2Flocalhost%3A8000'

client.add(magnetURI, { path: 'E:/',
announce: ['http://localhost:8000/announce', 'udp://0.0.0.0:8000', 'udp://localhost:8000','ws://localhost:8000']

}, function (torrent) {
torrent.on('done', function () {
console.log('torrent download finished')
})
})

now when seeding code is runned it returns the magnets fine.
but when i run the download code it takes a while and returns 'torrent download finished' in console . and yet i still cant find the downloaded file

please bare with me i cant seem to find what im doing wrong
thanks for the help

@nativeB nativeB closed this Aug 9, 2017
@nativeB

This comment has been minimized.

Copy link
Author

@nativeB nativeB commented Aug 9, 2017

Figured it out my self

@lock lock bot locked as resolved and limited conversation to collaborators May 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.