{"action":"closed","issue":{"url":"https://api.github.com/repos/Lacsap-/4scanner/issues/37","repository_url":"https://api.github.com/repos/Lacsap-/4scanner","labels_url":"https://api.github.com/repos/Lacsap-/4scanner/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/Lacsap-/4scanner/issues/37/comments","events_url":"https://api.github.com/repos/Lacsap-/4scanner/issues/37/events","html_url":"https://github.com/Lacsap-/4scanner/issues/37","id":167712051,"number":37,"title":"Download picture first to /tmp when checking if duplicate","user":{"login":"Lacsap-","id":7145585,"avatar_url":"https://avatars.githubusercontent.com/u/7145585?v=3","gravatar_id":"","url":"https://api.github.com/users/Lacsap-","html_url":"https://github.com/Lacsap-","followers_url":"https://api.github.com/users/Lacsap-/followers","following_url":"https://api.github.com/users/Lacsap-/following{/other_user}","gists_url":"https://api.github.com/users/Lacsap-/gists{/gist_id}","starred_url":"https://api.github.com/users/Lacsap-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lacsap-/subscriptions","organizations_url":"https://api.github.com/users/Lacsap-/orgs","repos_url":"https://api.github.com/users/Lacsap-/repos","events_url":"https://api.github.com/users/Lacsap-/events{/privacy}","received_events_url":"https://api.github.com/users/Lacsap-/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Lacsap-/4scanner/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/Lacsap-/4scanner/labels/Hacktoberfest","name":"Hacktoberfest","color":"d93f0b"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-26T21:07:05Z","updated_at":"2016-10-03T01:04:43Z","closed_at":"2016-10-03T01:04:43Z","body":"The way checking for duplicate for picture work is:\r\n- download picture\r\n- cksum the picture\r\n- compare cksum with list of cksum from the others pictures in the folder.\r\n- delete if duplicate\r\n\r\nThis cause a problem if you have another program copying/moving pictures when they are downloaded. They will copy the picture even if it is a duplicate if it is copying fast enough.\r\n\r\nThe solution would be to:\r\n- download picture to /tmp\r\n- cksum the picture\r\n- compare cksum with list of cksum from the others pictures in the folder.\r\n- delete if duplicate, move to download folder if not"}}
{"actor":{"display_login":"Lacsap-"}}