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 upFiles are always null #569
Comments
This comment has been minimized.
This comment has been minimized.
|
Please provide more details. Are you running this in node.js or the browser? Which version of node or browser are you using? What do you mean it "gives |
This comment has been minimized.
This comment has been minimized.
|
I'm using |
This comment has been minimized.
This comment has been minimized.
|
WebTorrent or BitTorrent? |
This comment has been minimized.
This comment has been minimized.
|
The code you first posted doesn't have It seems you are trying to access the files property before it has even downloaded the metadata. Can you post the full code please? |
This comment has been minimized.
This comment has been minimized.
|
@DiegoRBaquero No, just run it in your console |
This comment has been minimized.
This comment has been minimized.
|
Yeah that's my point, the metadata never gets downloaded.. |
This comment has been minimized.
This comment has been minimized.
|
I just tested in BTorrent with the magnet of the example, it works. Do you have your code hosted somewhere? Maybe jsfiddle or plunker? https://www.dropbox.com/s/7iw6ec2fk2otw0x/Screenshot%202016-01-12%2014.20.13.png?dl=0 |
This comment has been minimized.
This comment has been minimized.
|
@KeizerDev If you won't post your full code then we can't help you beyond what we've already tried. @DiegoRBaquero is right. It sounds like you're trying to use the torrent object before the callback has fired. The sample code you provided works fine for me. You shouldn't do |
This comment has been minimized.
This comment has been minimized.
|
@DiegoRBaquero and @feross my full code is actually:
This will work as you guys said, I just had to wait, BUT when I change the magnet link to something like |
This comment has been minimized.
This comment has been minimized.
|
Because, for the 1000th time, that torrent is not in the webrtc network. Also, please do NOT use WebTorrent for copyright infringement. Please read this part of the FAQ:
|
Understanding example gives
files: null, how can I fix that?