{"action":"created","issue":{"url":"https://api.github.com/repos/stewrutledge/makeTorrent/issues/2","labels_url":"https://api.github.com/repos/stewrutledge/makeTorrent/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/stewrutledge/makeTorrent/issues/2/comments","events_url":"https://api.github.com/repos/stewrutledge/makeTorrent/issues/2/events","html_url":"https://github.com/stewrutledge/makeTorrent/issues/2","id":73748255,"number":2,"title":"method mk.single_file bug (torrent length)","user":{"login":"aeusse","id":12282490,"avatar_url":"https://avatars.githubusercontent.com/u/12282490?v=3","gravatar_id":"","url":"https://api.github.com/users/aeusse","html_url":"https://github.com/aeusse","followers_url":"https://api.github.com/users/aeusse/followers","following_url":"https://api.github.com/users/aeusse/following{/other_user}","gists_url":"https://api.github.com/users/aeusse/gists{/gist_id}","starred_url":"https://api.github.com/users/aeusse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aeusse/subscriptions","organizations_url":"https://api.github.com/users/aeusse/orgs","repos_url":"https://api.github.com/users/aeusse/repos","events_url":"https://api.github.com/users/aeusse/events{/privacy}","received_events_url":"https://api.github.com/users/aeusse/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-06T21:52:41Z","updated_at":"2015-05-07T07:06:39Z","closed_at":null,"body":"There is a bug using the method mk.single_file (makeTorrent/makeTorrent.py). It adds twice the length of the source file. I think one solution could be removing line 138 (length += len(filedata)). Or the other one could be replacing \"length = len(open(realPath).read())\" by \"length = 0\" in line 128. Thank you for your attention. "},"comment":{"url":"https://api.github.com/repos/stewrutledge/makeTorrent/issues/comments/99750786","html_url":"https://github.com/stewrutledge/makeTorrent/issues/2#issuecomment-99750786","issue_url":"https://api.github.com/repos/stewrutledge/makeTorrent/issues/2","id":99750786,"user":{"login":"stewrutledge","id":1089738,"avatar_url":"https://avatars.githubusercontent.com/u/1089738?v=3","gravatar_id":"","url":"https://api.github.com/users/stewrutledge","html_url":"https://github.com/stewrutledge","followers_url":"https://api.github.com/users/stewrutledge/followers","following_url":"https://api.github.com/users/stewrutledge/following{/other_user}","gists_url":"https://api.github.com/users/stewrutledge/gists{/gist_id}","starred_url":"https://api.github.com/users/stewrutledge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stewrutledge/subscriptions","organizations_url":"https://api.github.com/users/stewrutledge/orgs","repos_url":"https://api.github.com/users/stewrutledge/repos","events_url":"https://api.github.com/users/stewrutledge/events{/privacy}","received_events_url":"https://api.github.com/users/stewrutledge/received_events","type":"User","site_admin":false},"created_at":"2015-05-07T07:06:39Z","updated_at":"2015-05-07T07:06:39Z","body":"Looks like option two was the problem, as you can see the rest of the variables are initialized empty.\r\n\r\nThanks for the report, can you pull master and see if it's working as expected now?"}}