{"action":"created","comment":{"url":"https://api.github.com/repos/haiwen/seafile/pulls/comments/64853005","id":64853005,"diff_hunk":"@@ -167,6 +172,20 @@ seaf_web_at_manager_get_access_token (SeafWebAccessTokenManager *mgr,\n \n     pthread_mutex_unlock (&mgr->priv->lock);\n \n+    if (strcmp(op, \"download-dir\") == 0 ||\n+        strcmp(op, \"download-multi\") == 0) {\n+        if (zip_download_mgr_start_zip_task (seaf->zip_download_mgr,\n+                                             t, error) < 0) {\n+            if (!use_onetime) {","path":"server/web-accesstoken-mgr.c","position":39,"original_position":39,"commit_id":"bc47a068e163cbdac6d3f20873613df608dfd846","original_commit_id":"bc47a068e163cbdac6d3f20873613df608dfd846","user":{"login":"killing","id":109284,"avatar_url":"https://avatars.githubusercontent.com/u/109284?v=3","gravatar_id":"","url":"https://api.github.com/users/killing","html_url":"https://github.com/killing","followers_url":"https://api.github.com/users/killing/followers","following_url":"https://api.github.com/users/killing/following{/other_user}","gists_url":"https://api.github.com/users/killing/gists{/gist_id}","starred_url":"https://api.github.com/users/killing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/killing/subscriptions","organizations_url":"https://api.github.com/users/killing/orgs","repos_url":"https://api.github.com/users/killing/repos","events_url":"https://api.github.com/users/killing/events{/privacy}","received_events_url":"https://api.github.com/users/killing/received_events","type":"User","site_admin":false},"body":"为什么只在 use_onetime 的时候才删除？","created_at":"2016-05-27T03:27:04Z","updated_at":"2016-05-27T03:27:04Z","html_url":"https://github.com/haiwen/seafile/pull/1663#discussion_r64853005","pull_request_url":"https://api.github.com/repos/haiwen/seafile/pulls/1663","_links":{"self":{"href":"https://api.github.com/repos/haiwen/seafile/pulls/comments/64853005"},"html":{"href":"https://github.com/haiwen/seafile/pull/1663#discussion_r64853005"},"pull_request":{"href":"https://api.github.com/repos/haiwen/seafile/pulls/1663"}}},"pull_request":{"url":"https://api.github.com/repos/haiwen/seafile/pulls/1663","id":71527220,"html_url":"https://github.com/haiwen/seafile/pull/1663","diff_url":"https://github.com/haiwen/seafile/pull/1663.diff","patch_url":"https://github.com/haiwen/seafile/pull/1663.patch","issue_url":"https://api.github.com/repos/haiwen/seafile/issues/1663","number":1663,"state":"open","locked":false,"title":"add progress for download dir/multi","user":{"login":"jyelee","id":3362214,"avatar_url":"https://avatars.githubusercontent.com/u/3362214?v=3","gravatar_id":"","url":"https://api.github.com/users/jyelee","html_url":"https://github.com/jyelee","followers_url":"https://api.github.com/users/jyelee/followers","following_url":"https://api.github.com/users/jyelee/following{/other_user}","gists_url":"https://api.github.com/users/jyelee/gists{/gist_id}","starred_url":"https://api.github.com/users/jyelee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jyelee/subscriptions","organizations_url":"https://api.github.com/users/jyelee/orgs","repos_url":"https://api.github.com/users/jyelee/repos","events_url":"https://api.github.com/users/jyelee/events{/privacy}","received_events_url":"https://api.github.com/users/jyelee/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-26T09:41:58Z","updated_at":"2016-05-27T03:27:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"48e6870220ae2da9d164113791c60f86982bb95f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/haiwen/seafile/pulls/1663/commits","review_comments_url":"https://api.github.com/repos/haiwen/seafile/pulls/1663/comments","review_comment_url":"https://api.github.com/repos/haiwen/seafile/pulls/comments{/number}","comments_url":"https://api.github.com/repos/haiwen/seafile/issues/1663/comments","statuses_url":"https://api.github.com/repos/haiwen/seafile/statuses/bc47a068e163cbdac6d3f20873613df608dfd846","head":{"label":"haiwen:zip-progress","ref":"zip-progress","sha":"bc47a068e163cbdac6d3f20873613df608dfd846","user":{"login":"haiwen","id":1948782,"avatar_url":"https://avatars.githubusercontent.com/u/1948782?v=3","gravatar_id":"","url":"https://api.github.com/users/haiwen","html_url":"https://github.com/haiwen","followers_url":"https://api.github.com/users/haiwen/followers","following_url":"https://api.github.com/users/haiwen/following{/other_user}","gists_url":"https://api.github.com/users/haiwen/gists{/gist_id}","starred_url":"https://api.github.com/users/haiwen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haiwen/subscriptions","organizations_url":"https://api.github.com/users/haiwen/orgs","repos_url":"https://api.github.com/users/haiwen/repos","events_url":"https://api.github.com/users/haiwen/events{/privacy}","received_events_url":"https://api.github.com/users/haiwen/received_events","type":"Organization","site_admin":false},"repo":{"id":4999959,"name":"seafile","full_name":"haiwen/seafile","owner":{"login":"haiwen","id":1948782,"avatar_url":"https://avatars.githubusercontent.com/u/1948782?v=3","gravatar_id":"","url":"https://api.github.com/users/haiwen","html_url":"https://github.com/haiwen","followers_url":"https://api.github.com/users/haiwen/followers","following_url":"https://api.github.com/users/haiwen/following{/other_user}","gists_url":"https://api.github.com/users/haiwen/gists{/gist_id}","starred_url":"https://api.github.com/users/haiwen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haiwen/subscriptions","organizations_url":"https://api.github.com/users/haiwen/orgs","repos_url":"https://api.github.com/users/haiwen/repos","events_url":"https://api.github.com/users/haiwen/events{/privacy}","received_events_url":"https://api.github.com/users/haiwen/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/haiwen/seafile","description":"File syncing and sharing software with file encryption and group sharing, emphasis on reliability and high performance. ","fork":false,"url":"https://api.github.com/repos/haiwen/seafile","forks_url":"https://api.github.com/repos/haiwen/seafile/forks","keys_url":"https://api.github.com/repos/haiwen/seafile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/haiwen/seafile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/haiwen/seafile/teams","hooks_url":"https://api.github.com/repos/haiwen/seafile/hooks","issue_events_url":"https://api.github.com/repos/haiwen/seafile/issues/events{/number}","events_url":"https://api.github.com/repos/haiwen/seafile/events","assignees_url":"https://api.github.com/repos/haiwen/seafile/assignees{/user}","branches_url":"https://api.github.com/repos/haiwen/seafile/branches{/branch}","tags_url":"https://api.github.com/repos/haiwen/seafile/tags","blobs_url":"https://api.github.com/repos/haiwen/seafile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/haiwen/seafile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/haiwen/seafile/git/refs{/sha}","trees_url":"https://api.github.com/repos/haiwen/seafile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/haiwen/seafile/statuses/{sha}","languages_url":"https://api.github.com/repos/haiwen/seafile/languages","stargazers_url":"https://api.github.com/repos/haiwen/seafile/stargazers","contributors_url":"https://api.github.com/repos/haiwen/seafile/contributors","subscribers_url":"https://api.github.com/repos/haiwen/seafile/subscribers","subscription_url":"https://api.github.com/repos/haiwen/seafile/subscription","commits_url":"https://api.github.com/repos/haiwen/seafile/commits{/sha}","git_commits_url":"https://api.github.com/repos/haiwen/seafile/git/commits{/sha}","comments_url":"https://api.github.com/repos/haiwen/seafile/comments{/number}","issue_comment_url":"https://api.github.com/repos/haiwen/seafile/issues/comments{/number}","contents_url":"https://api.github.com/repos/haiwen/seafile/contents/{+path}","compare_url":"https://api.github.com/repos/haiwen/seafile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/haiwen/seafile/merges","archive_url":"https://api.github.com/repos/haiwen/seafile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/haiwen/seafile/downloads","issues_url":"https://api.github.com/repos/haiwen/seafile/issues{/number}","pulls_url":"https://api.github.com/repos/haiwen/seafile/pulls{/number}","milestones_url":"https://api.github.com/repos/haiwen/seafile/milestones{/number}","notifications_url":"https://api.github.com/repos/haiwen/seafile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/haiwen/seafile/labels{/name}","releases_url":"https://api.github.com/repos/haiwen/seafile/releases{/id}","deployments_url":"https://api.github.com/repos/haiwen/seafile/deployments","created_at":"2012-07-12T06:47:55Z","updated_at":"2016-05-26T20:48:39Z","pushed_at":"2016-05-27T02:55:33Z","git_url":"git://github.com/haiwen/seafile.git","ssh_url":"git@github.com:haiwen/seafile.git","clone_url":"https://github.com/haiwen/seafile.git","svn_url":"https://github.com/haiwen/seafile","homepage":"http://seafile.com/","size":14129,"stargazers_count":3802,"watchers_count":3802,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":674,"mirror_url":null,"open_issues_count":160,"forks":674,"open_issues":160,"watchers":3802,"default_branch":"master"}},"base":{"label":"haiwen:master","ref":"master","sha":"e2ffb27351b12c2ce03706e6434c8ecc44446acc","user":{"login":"haiwen","id":1948782,"avatar_url":"https://avatars.githubusercontent.com/u/1948782?v=3","gravatar_id":"","url":"https://api.github.com/users/haiwen","html_url":"https://github.com/haiwen","followers_url":"https://api.github.com/users/haiwen/followers","following_url":"https://api.github.com/users/haiwen/following{/other_user}","gists_url":"https://api.github.com/users/haiwen/gists{/gist_id}","starred_url":"https://api.github.com/users/haiwen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haiwen/subscriptions","organizations_url":"https://api.github.com/users/haiwen/orgs","repos_url":"https://api.github.com/users/haiwen/repos","events_url":"https://api.github.com/users/haiwen/events{/privacy}","received_events_url":"https://api.github.com/users/haiwen/received_events","type":"Organization","site_admin":false},"repo":{"id":4999959,"name":"seafile","full_name":"haiwen/seafile","owner":{"login":"haiwen","id":1948782,"avatar_url":"https://avatars.githubusercontent.com/u/1948782?v=3","gravatar_id":"","url":"https://api.github.com/users/haiwen","html_url":"https://github.com/haiwen","followers_url":"https://api.github.com/users/haiwen/followers","following_url":"https://api.github.com/users/haiwen/following{/other_user}","gists_url":"https://api.github.com/users/haiwen/gists{/gist_id}","starred_url":"https://api.github.com/users/haiwen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haiwen/subscriptions","organizations_url":"https://api.github.com/users/haiwen/orgs","repos_url":"https://api.github.com/users/haiwen/repos","events_url":"https://api.github.com/users/haiwen/events{/privacy}","received_events_url":"https://api.github.com/users/haiwen/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/haiwen/seafile","description":"File syncing and sharing software with file encryption and group sharing, emphasis on reliability and high performance. ","fork":false,"url":"https://api.github.com/repos/haiwen/seafile","forks_url":"https://api.github.com/repos/haiwen/seafile/forks","keys_url":"https://api.github.com/repos/haiwen/seafile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/haiwen/seafile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/haiwen/seafile/teams","hooks_url":"https://api.github.com/repos/haiwen/seafile/hooks","issue_events_url":"https://api.github.com/repos/haiwen/seafile/issues/events{/number}","events_url":"https://api.github.com/repos/haiwen/seafile/events","assignees_url":"https://api.github.com/repos/haiwen/seafile/assignees{/user}","branches_url":"https://api.github.com/repos/haiwen/seafile/branches{/branch}","tags_url":"https://api.github.com/repos/haiwen/seafile/tags","blobs_url":"https://api.github.com/repos/haiwen/seafile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/haiwen/seafile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/haiwen/seafile/git/refs{/sha}","trees_url":"https://api.github.com/repos/haiwen/seafile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/haiwen/seafile/statuses/{sha}","languages_url":"https://api.github.com/repos/haiwen/seafile/languages","stargazers_url":"https://api.github.com/repos/haiwen/seafile/stargazers","contributors_url":"https://api.github.com/repos/haiwen/seafile/contributors","subscribers_url":"https://api.github.com/repos/haiwen/seafile/subscribers","subscription_url":"https://api.github.com/repos/haiwen/seafile/subscription","commits_url":"https://api.github.com/repos/haiwen/seafile/commits{/sha}","git_commits_url":"https://api.github.com/repos/haiwen/seafile/git/commits{/sha}","comments_url":"https://api.github.com/repos/haiwen/seafile/comments{/number}","issue_comment_url":"https://api.github.com/repos/haiwen/seafile/issues/comments{/number}","contents_url":"https://api.github.com/repos/haiwen/seafile/contents/{+path}","compare_url":"https://api.github.com/repos/haiwen/seafile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/haiwen/seafile/merges","archive_url":"https://api.github.com/repos/haiwen/seafile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/haiwen/seafile/downloads","issues_url":"https://api.github.com/repos/haiwen/seafile/issues{/number}","pulls_url":"https://api.github.com/repos/haiwen/seafile/pulls{/number}","milestones_url":"https://api.github.com/repos/haiwen/seafile/milestones{/number}","notifications_url":"https://api.github.com/repos/haiwen/seafile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/haiwen/seafile/labels{/name}","releases_url":"https://api.github.com/repos/haiwen/seafile/releases{/id}","deployments_url":"https://api.github.com/repos/haiwen/seafile/deployments","created_at":"2012-07-12T06:47:55Z","updated_at":"2016-05-26T20:48:39Z","pushed_at":"2016-05-27T02:55:33Z","git_url":"git://github.com/haiwen/seafile.git","ssh_url":"git@github.com:haiwen/seafile.git","clone_url":"https://github.com/haiwen/seafile.git","svn_url":"https://github.com/haiwen/seafile","homepage":"http://seafile.com/","size":14129,"stargazers_count":3802,"watchers_count":3802,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":674,"mirror_url":null,"open_issues_count":160,"forks":674,"open_issues":160,"watchers":3802,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/haiwen/seafile/pulls/1663"},"html":{"href":"https://github.com/haiwen/seafile/pull/1663"},"issue":{"href":"https://api.github.com/repos/haiwen/seafile/issues/1663"},"comments":{"href":"https://api.github.com/repos/haiwen/seafile/issues/1663/comments"},"review_comments":{"href":"https://api.github.com/repos/haiwen/seafile/pulls/1663/comments"},"review_comment":{"href":"https://api.github.com/repos/haiwen/seafile/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/haiwen/seafile/pulls/1663/commits"},"statuses":{"href":"https://api.github.com/repos/haiwen/seafile/statuses/bc47a068e163cbdac6d3f20873613df608dfd846"}}}}
{"actor":{"display_login":"killing"}}