{"action":"created","issue":{"url":"https://api.github.com/repos/FlyersWeb/dhtbay/issues/6","repository_url":"https://api.github.com/repos/FlyersWeb/dhtbay","labels_url":"https://api.github.com/repos/FlyersWeb/dhtbay/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/FlyersWeb/dhtbay/issues/6/comments","events_url":"https://api.github.com/repos/FlyersWeb/dhtbay/issues/6/events","html_url":"https://github.com/FlyersWeb/dhtbay/issues/6","id":163751941,"number":6,"title":"More .torrent file sources","user":{"login":"duramato","id":10121067,"avatar_url":"https://avatars.githubusercontent.com/u/10121067?v=3","gravatar_id":"","url":"https://api.github.com/users/duramato","html_url":"https://github.com/duramato","followers_url":"https://api.github.com/users/duramato/followers","following_url":"https://api.github.com/users/duramato/following{/other_user}","gists_url":"https://api.github.com/users/duramato/gists{/gist_id}","starred_url":"https://api.github.com/users/duramato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duramato/subscriptions","organizations_url":"https://api.github.com/users/duramato/orgs","repos_url":"https://api.github.com/users/duramato/repos","events_url":"https://api.github.com/users/duramato/events{/privacy}","received_events_url":"https://api.github.com/users/duramato/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/FlyersWeb/dhtbay/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-07-04T23:45:59Z","updated_at":"2016-07-29T08:55:51Z","closed_at":null,"body":"Add the possibility  to add via a config file, ideally,  more sources to download .torrents. \r\nThey could be added as they are atm to the config file `http://torcache.net/torrent/{DHTHASH}.torrent` , so that despite the format the only part that would change would be the DHTHASH, so it could even be `http://mydomain.com/download/torrent/{DHTHASH}`"},"comment":{"url":"https://api.github.com/repos/FlyersWeb/dhtbay/issues/comments/236129369","html_url":"https://github.com/FlyersWeb/dhtbay/issues/6#issuecomment-236129369","issue_url":"https://api.github.com/repos/FlyersWeb/dhtbay/issues/6","id":236129369,"user":{"login":"albabosh","id":6215228,"avatar_url":"https://avatars.githubusercontent.com/u/6215228?v=3","gravatar_id":"","url":"https://api.github.com/users/albabosh","html_url":"https://github.com/albabosh","followers_url":"https://api.github.com/users/albabosh/followers","following_url":"https://api.github.com/users/albabosh/following{/other_user}","gists_url":"https://api.github.com/users/albabosh/gists{/gist_id}","starred_url":"https://api.github.com/users/albabosh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albabosh/subscriptions","organizations_url":"https://api.github.com/users/albabosh/orgs","repos_url":"https://api.github.com/users/albabosh/repos","events_url":"https://api.github.com/users/albabosh/events{/privacy}","received_events_url":"https://api.github.com/users/albabosh/received_events","type":"User","site_admin":false},"created_at":"2016-07-29T08:55:50Z","updated_at":"2016-07-29T08:55:50Z","body":"function run() {\r\n\r\n  client.lpop(\"DHTS\",function(err, hash){\r\n    if(err) {console.log(err); return;}\r\n    if(!hash) {return;}\r\n    if(fs.existsSync(dest+hash.toString()+'.torrent')) {console.log(\"File \"+hash.toString().toUpperCase()+\".torrent already exists\");return;}\r\n    var magnet = MAGNET_TEMPLATE.replace('{DHTHASH}',hash.toString().toUpperCase());\r\n        aria2.open(function(){\r\n        aria2.send('addUri',[magnet],{'bt-metadata-only':'true', 'bt-save-metadata':'true', 'dir':dest}, function(err,res){\r\n          if(err) { console.log(err); return;}\r\n          console.log(\"Added : \"+hash.toString().toUpperCase()+\".torrent\");\r\n//          client.rpush(\"TORS\", hash.toString());\r\n          aria2.close();\r\n        })\r\n      });\r\n    });\r\n\r\n}\r\n\r\nthis is how i did it"}}
{"actor":{"display_login":"albabosh"}}