{"action":"opened","issue":{"url":"https://api.github.com/repos/feross/webtorrent/issues/1002","repository_url":"https://api.github.com/repos/feross/webtorrent","labels_url":"https://api.github.com/repos/feross/webtorrent/issues/1002/labels{/name}","comments_url":"https://api.github.com/repos/feross/webtorrent/issues/1002/comments","events_url":"https://api.github.com/repos/feross/webtorrent/issues/1002/events","html_url":"https://github.com/feross/webtorrent/issues/1002","id":196278093,"number":1002,"title":"client.get(torrentId) not doing anything?","user":{"login":"davidgatti","id":411114,"avatar_url":"https://avatars.githubusercontent.com/u/411114?v=3","gravatar_id":"","url":"https://api.github.com/users/davidgatti","html_url":"https://github.com/davidgatti","followers_url":"https://api.github.com/users/davidgatti/followers","following_url":"https://api.github.com/users/davidgatti/following{/other_user}","gists_url":"https://api.github.com/users/davidgatti/gists{/gist_id}","starred_url":"https://api.github.com/users/davidgatti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidgatti/subscriptions","organizations_url":"https://api.github.com/users/davidgatti/orgs","repos_url":"https://api.github.com/users/davidgatti/repos","events_url":"https://api.github.com/users/davidgatti/events{/privacy}","received_events_url":"https://api.github.com/users/davidgatti/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-18T14:18:23Z","updated_at":"2016-12-18T14:18:23Z","closed_at":null,"body":"The documentation states:\r\n\r\n> Returns the torrent with the given torrentId. Convenience method. Easier than searching through the client.torrents array. Returns null if no matching torrent found.\r\n\r\nBut when I write the following:\r\n\r\n```Javascript\r\n\t//\r\n\t//\tGet torrent info from the client\r\n\t//\r\n\tclient.get(magnet, function (torrent) {\r\n\r\n\t\t//\r\n\t\t//\tContent of the Magnet URL\r\n\t\t//\r\n\t\tlet files = [];\r\n\r\n\t\t//\r\n\t\t//\tExtract all the files form the Magnet URL\r\n\t\t//\r\n\t\ttorrent.files.forEach(function(data) {\r\n\r\n\t\t\tfiles.push({\r\n\t\t\t\tname: data.name,\r\n\t\t\t\tlength: data.length\r\n\t\t\t});\r\n\r\n\t\t});\r\n\r\n\t\t//\r\n\t\t//\t->\tJust say it is ok.\r\n\t\t//\r\n\t\tres.status(200)\r\n\t\tres.json(files);\r\n\r\n\t});\r\n```\r\n\r\nNothing happens, no `null` no nothing. Where for example `.add()` works no problem. Am I doing something wrong?\r\n\r\n* WebTorrent version: 0.98.0\r\n* Node.js version: v6.4.0\r\n* Browser name/version (if using WebTorrent in the browser): Using NodeJS module.\r\n"}}
{"actor":{"display_login":"davidgatti"}}