Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upTorrent from magnet not adding webseeds #563
Comments
This comment has been minimized.
This comment has been minimized.
|
Is this a new issue? Or has this never worked for you before? |
This comment has been minimized.
This comment has been minimized.
|
If there are no peers, this is actually expected behavior, I believe. With no peers, there's no way for WebTorrent to get the torrent metadata. Without the torrent metadata, it can't verify that the right file data is being downloaded. You can test this out in Transmission or another torrent client and see that the download never starts there either. If there's a chance of no seeders, I think going with a .torrent file is the safest bet. |
This comment has been minimized.
This comment has been minimized.
|
Can you open a new issue for the repeated trackers issue and share some code that reproduces it? Or just send a PR? |
This comment has been minimized.
This comment has been minimized.
|
I feel so stupid. I forgot about that, and the worst Is that I knew that.
|
This comment has been minimized.
This comment has been minimized.
|
Haha, it's fine |
This comment has been minimized.
This comment has been minimized.
|
I can't reproduce this issue. I even added a test: d573c1f Can you send a PR and add a failing test to that file? |
This comment has been minimized.
This comment has been minimized.
|
To exactly reproduce this: Go to https://btorrent.xyz/ The magnet uri in share will be: ´´´´ 2 times BTorrent's tracker and 3 times WebTorrent's |
This comment has been minimized.
This comment has been minimized.
|
@DiegoRBaquero This doesn't happen on https://instant.io. I think you must be doing something different on your site. Lmk if you can pinpoint what you're doing differently. |
This comment has been minimized.
This comment has been minimized.
|
@feross Are you talking about the repeated trackers or the webseed adding? (Taking that the metadata is available from webrtc peers) |
This comment has been minimized.
This comment has been minimized.
|
@DiegoRBaquero I'm talking about the repeated trackers issue. Doesn't happen on instant.io. |
This comment has been minimized.
This comment has been minimized.
|
@feross Yes, for the opts I add manually both wss trackers in the client.add So the problem is that, when specifying trackers manually for a http(s) torrent file, repeated trackers will be allowed. See torrent.js#L238 This isn't working then: torrent.js#L258 because when encoded to a magnet uri, they should be unique, see torrent.js#L263 |
This comment has been minimized.
This comment has been minimized.
|
Moving to issue: #571 |
This comment has been minimized.
This comment has been minimized.
|
This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue. |
Tested to see if it would work with
magnet:?xt=urn:btih:4d1729d2cde07ff84d4d50f121f005deedc8db74&dn=gimp-2.8.16-x86_64.dmg&tr=udp%3A%2F%2Fexodus.desync.com%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.internetwarriors.net%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.webtorrent.io&tr=wss%3A%2F%2Ftracker.webtorrent.io&tr=wss%3A%2F%2Ftracker.webtorrent.io&tr=wss%3A%2F%2Ftracker.webtorrent.io&ws=https%3A%2F%2Fwebseed.btorrent.xyz%2Fgimp-2.8.16-x86_64.dmgWebseed doesn't get added.
Also, generated magnet URI repeats wss trackers.
Will investigate and PR later.