{"action":"closed","issue":{"url":"https://api.github.com/repos/feross/webtorrent/issues/571","labels_url":"https://api.github.com/repos/feross/webtorrent/issues/571/labels{/name}","comments_url":"https://api.github.com/repos/feross/webtorrent/issues/571/comments","events_url":"https://api.github.com/repos/feross/webtorrent/issues/571/events","html_url":"https://github.com/feross/webtorrent/issues/571","id":126508340,"number":571,"title":"client.add() with manual trackers, causes duplicates","user":{"login":"feross","id":121766,"avatar_url":"https://avatars.githubusercontent.com/u/121766?v=3","gravatar_id":"","url":"https://api.github.com/users/feross","html_url":"https://github.com/feross","followers_url":"https://api.github.com/users/feross/followers","following_url":"https://api.github.com/users/feross/following{/other_user}","gists_url":"https://api.github.com/users/feross/gists{/gist_id}","starred_url":"https://api.github.com/users/feross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feross/subscriptions","organizations_url":"https://api.github.com/users/feross/orgs","repos_url":"https://api.github.com/users/feross/repos","events_url":"https://api.github.com/users/feross/events{/privacy}","received_events_url":"https://api.github.com/users/feross/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/feross/webtorrent/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/feross/webtorrent/labels/help%20wanted","name":"help wanted","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-13T20:41:10Z","updated_at":"2016-01-26T06:18:51Z","closed_at":"2016-01-26T06:18:51Z","body":"Reposting issue for @DiegoRBaquero, from https://github.com/feross/webtorrent/issues/563#issuecomment-171127831:\r\n\r\n> @feross Yes, for the opts I add manually both wss trackers in the client.add\r\n\r\n> So the problem is that, when specifying trackers manually for a http(s) torrent file, repeated trackers will be allowed.\r\n\r\n> See [torrent.js#L238](https://github.com/feross/webtorrent/blob/master/lib/torrent.js#L238)\r\n\r\n> This isn't working then: [torrent.js#L258](https://github.com/feross/webtorrent/blob/master/lib/torrent.js#L258) because when encoded to a magnet uri, they should be unique, see [torrent.js#L263](https://github.com/feross/webtorrent/blob/master/lib/torrent.js#L263)"}}