{"action":"created","comment":{"url":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/comments/176495217","pull_request_review_id":106209501,"id":176495217,"diff_hunk":"@@ -0,0 +1,101 @@\n+/*\n+ * Bittorrent Client using Qt and libtorrent.\n+ * Copyright (C) 2018  Thomas Piccirello <thomas.piccirello@gmail.com>\n+ *\n+ * This program is free software; you can redistribute it and/or\n+ * modify it under the terms of the GNU General Public License\n+ * as published by the Free Software Foundation; either version 2\n+ * of the License, or (at your option) any later version.\n+ *\n+ * This program is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+ * GNU General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU General Public License\n+ * along with this program; if not, write to the Free Software\n+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.\n+ *\n+ * In addition, as a special exception, the copyright holders give permission to\n+ * link this program with the OpenSSL project's \"OpenSSL\" library (or with\n+ * modified versions of it that use the same license as the \"OpenSSL\" library),\n+ * and distribute the linked executables. You must obey the GNU General Public\n+ * License in all respects for all of the code used other than \"OpenSSL\".  If you\n+ * modify file(s), you may extend this exception to your version of the file(s),\n+ * but you are not obligated to do so. If you do not wish to do so, delete this\n+ * exception statement from your version.\n+ */\n+\n+#include \"websearchhandler.h\"\n+\n+#include \"base/bittorrent/session.h\"\n+#include \"base/search/searchdownloadhandler.h\"\n+\n+WebSearchHandler::WebSearchHandler(SearchHandler *searchHandler)\n+    : m_searchHandler(searchHandler)\n+{\n+    connect(searchHandler, &SearchHandler::newSearchResults, this, &WebSearchHandler::appendSearchResults);\n+    // connect(searchHandler, &SearchHandler::searchFinished, this, &WebSearchHandler::searchFinished);\n+    // connect(searchHandler, &SearchHandler::searchFailed, this, &WebSearchHandler::searchFailed);\n+    connect(this, &QObject::destroyed, searchHandler, &QObject::deleteLater);\n+}\n+\n+bool WebSearchHandler::isActive()","path":"src/webui/websearchhandler.cpp","position":43,"original_position":43,"commit_id":"5574420c9b23674aeaa21d273a5cced500fadb7c","original_commit_id":"5574420c9b23674aeaa21d273a5cced500fadb7c","user":{"login":"Chocobo1","id":9395168,"avatar_url":"https://avatars2.githubusercontent.com/u/9395168?v=4","gravatar_id":"","url":"https://api.github.com/users/Chocobo1","html_url":"https://github.com/Chocobo1","followers_url":"https://api.github.com/users/Chocobo1/followers","following_url":"https://api.github.com/users/Chocobo1/following{/other_user}","gists_url":"https://api.github.com/users/Chocobo1/gists{/gist_id}","starred_url":"https://api.github.com/users/Chocobo1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chocobo1/subscriptions","organizations_url":"https://api.github.com/users/Chocobo1/orgs","repos_url":"https://api.github.com/users/Chocobo1/repos","events_url":"https://api.github.com/users/Chocobo1/events{/privacy}","received_events_url":"https://api.github.com/users/Chocobo1/received_events","type":"User","site_admin":false},"body":"`bool WebSearchHandler::isActive() const`","created_at":"2018-03-22T16:55:39Z","updated_at":"2018-03-22T16:55:39Z","html_url":"https://github.com/qbittorrent/qBittorrent/pull/8584#discussion_r176495217","pull_request_url":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/8584","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/comments/176495217"},"html":{"href":"https://github.com/qbittorrent/qBittorrent/pull/8584#discussion_r176495217"},"pull_request":{"href":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/8584"}}},"pull_request":{"url":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/8584","id":174278131,"html_url":"https://github.com/qbittorrent/qBittorrent/pull/8584","diff_url":"https://github.com/qbittorrent/qBittorrent/pull/8584.diff","patch_url":"https://github.com/qbittorrent/qBittorrent/pull/8584.patch","issue_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/8584","number":8584,"state":"open","locked":false,"title":"WebUI search API. Closes #2495","user":{"login":"Piccirello","id":8296030,"avatar_url":"https://avatars1.githubusercontent.com/u/8296030?v=4","gravatar_id":"","url":"https://api.github.com/users/Piccirello","html_url":"https://github.com/Piccirello","followers_url":"https://api.github.com/users/Piccirello/followers","following_url":"https://api.github.com/users/Piccirello/following{/other_user}","gists_url":"https://api.github.com/users/Piccirello/gists{/gist_id}","starred_url":"https://api.github.com/users/Piccirello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Piccirello/subscriptions","organizations_url":"https://api.github.com/users/Piccirello/orgs","repos_url":"https://api.github.com/users/Piccirello/repos","events_url":"https://api.github.com/users/Piccirello/events{/privacy}","received_events_url":"https://api.github.com/users/Piccirello/received_events","type":"User","site_admin":false},"body":"Continuation of #8152","created_at":"2018-03-12T05:52:33Z","updated_at":"2018-03-22T16:55:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0a86cb440f1035043017f45390a7b78c74a1d21d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":681368562,"url":"https://api.github.com/repos/qbittorrent/qBittorrent/labels/Feature","name":"Feature","color":"3cff5c","default":false},{"id":36746819,"url":"https://api.github.com/repos/qbittorrent/qBittorrent/labels/Search%20engines","name":"Search engines","color":"dddddd","default":false},{"id":36746818,"url":"https://api.github.com/repos/qbittorrent/qBittorrent/labels/WebUI","name":"WebUI","color":"dddddd","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/8584/commits","review_comments_url":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/8584/comments","review_comment_url":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/comments{/number}","comments_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/8584/comments","statuses_url":"https://api.github.com/repos/qbittorrent/qBittorrent/statuses/5574420c9b23674aeaa21d273a5cced500fadb7c","head":{"label":"Piccirello:new-search-api-2","ref":"new-search-api-2","sha":"5574420c9b23674aeaa21d273a5cced500fadb7c","user":{"login":"Piccirello","id":8296030,"avatar_url":"https://avatars1.githubusercontent.com/u/8296030?v=4","gravatar_id":"","url":"https://api.github.com/users/Piccirello","html_url":"https://github.com/Piccirello","followers_url":"https://api.github.com/users/Piccirello/followers","following_url":"https://api.github.com/users/Piccirello/following{/other_user}","gists_url":"https://api.github.com/users/Piccirello/gists{/gist_id}","starred_url":"https://api.github.com/users/Piccirello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Piccirello/subscriptions","organizations_url":"https://api.github.com/users/Piccirello/orgs","repos_url":"https://api.github.com/users/Piccirello/repos","events_url":"https://api.github.com/users/Piccirello/events{/privacy}","received_events_url":"https://api.github.com/users/Piccirello/received_events","type":"User","site_admin":false},"repo":{"id":91165294,"name":"qBittorrent","full_name":"Piccirello/qBittorrent","owner":{"login":"Piccirello","id":8296030,"avatar_url":"https://avatars1.githubusercontent.com/u/8296030?v=4","gravatar_id":"","url":"https://api.github.com/users/Piccirello","html_url":"https://github.com/Piccirello","followers_url":"https://api.github.com/users/Piccirello/followers","following_url":"https://api.github.com/users/Piccirello/following{/other_user}","gists_url":"https://api.github.com/users/Piccirello/gists{/gist_id}","starred_url":"https://api.github.com/users/Piccirello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Piccirello/subscriptions","organizations_url":"https://api.github.com/users/Piccirello/orgs","repos_url":"https://api.github.com/users/Piccirello/repos","events_url":"https://api.github.com/users/Piccirello/events{/privacy}","received_events_url":"https://api.github.com/users/Piccirello/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Piccirello/qBittorrent","description":"qBittorrent BitTorrent client","fork":true,"url":"https://api.github.com/repos/Piccirello/qBittorrent","forks_url":"https://api.github.com/repos/Piccirello/qBittorrent/forks","keys_url":"https://api.github.com/repos/Piccirello/qBittorrent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Piccirello/qBittorrent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Piccirello/qBittorrent/teams","hooks_url":"https://api.github.com/repos/Piccirello/qBittorrent/hooks","issue_events_url":"https://api.github.com/repos/Piccirello/qBittorrent/issues/events{/number}","events_url":"https://api.github.com/repos/Piccirello/qBittorrent/events","assignees_url":"https://api.github.com/repos/Piccirello/qBittorrent/assignees{/user}","branches_url":"https://api.github.com/repos/Piccirello/qBittorrent/branches{/branch}","tags_url":"https://api.github.com/repos/Piccirello/qBittorrent/tags","blobs_url":"https://api.github.com/repos/Piccirello/qBittorrent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Piccirello/qBittorrent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Piccirello/qBittorrent/git/refs{/sha}","trees_url":"https://api.github.com/repos/Piccirello/qBittorrent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Piccirello/qBittorrent/statuses/{sha}","languages_url":"https://api.github.com/repos/Piccirello/qBittorrent/languages","stargazers_url":"https://api.github.com/repos/Piccirello/qBittorrent/stargazers","contributors_url":"https://api.github.com/repos/Piccirello/qBittorrent/contributors","subscribers_url":"https://api.github.com/repos/Piccirello/qBittorrent/subscribers","subscription_url":"https://api.github.com/repos/Piccirello/qBittorrent/subscription","commits_url":"https://api.github.com/repos/Piccirello/qBittorrent/commits{/sha}","git_commits_url":"https://api.github.com/repos/Piccirello/qBittorrent/git/commits{/sha}","comments_url":"https://api.github.com/repos/Piccirello/qBittorrent/comments{/number}","issue_comment_url":"https://api.github.com/repos/Piccirello/qBittorrent/issues/comments{/number}","contents_url":"https://api.github.com/repos/Piccirello/qBittorrent/contents/{+path}","compare_url":"https://api.github.com/repos/Piccirello/qBittorrent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Piccirello/qBittorrent/merges","archive_url":"https://api.github.com/repos/Piccirello/qBittorrent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Piccirello/qBittorrent/downloads","issues_url":"https://api.github.com/repos/Piccirello/qBittorrent/issues{/number}","pulls_url":"https://api.github.com/repos/Piccirello/qBittorrent/pulls{/number}","milestones_url":"https://api.github.com/repos/Piccirello/qBittorrent/milestones{/number}","notifications_url":"https://api.github.com/repos/Piccirello/qBittorrent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Piccirello/qBittorrent/labels{/name}","releases_url":"https://api.github.com/repos/Piccirello/qBittorrent/releases{/id}","deployments_url":"https://api.github.com/repos/Piccirello/qBittorrent/deployments","created_at":"2017-05-13T10:03:54Z","updated_at":"2018-03-19T20:02:19Z","pushed_at":"2018-03-21T04:04:26Z","git_url":"git://github.com/Piccirello/qBittorrent.git","ssh_url":"git@github.com:Piccirello/qBittorrent.git","clone_url":"https://github.com/Piccirello/qBittorrent.git","svn_url":"https://github.com/Piccirello/qBittorrent","homepage":"http://www.qbittorrent.org","size":161767,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"qbittorrent:master","ref":"master","sha":"a5294e1e08b32c68967bd99a853f373b4bf24401","user":{"login":"qbittorrent","id":2131270,"avatar_url":"https://avatars2.githubusercontent.com/u/2131270?v=4","gravatar_id":"","url":"https://api.github.com/users/qbittorrent","html_url":"https://github.com/qbittorrent","followers_url":"https://api.github.com/users/qbittorrent/followers","following_url":"https://api.github.com/users/qbittorrent/following{/other_user}","gists_url":"https://api.github.com/users/qbittorrent/gists{/gist_id}","starred_url":"https://api.github.com/users/qbittorrent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qbittorrent/subscriptions","organizations_url":"https://api.github.com/users/qbittorrent/orgs","repos_url":"https://api.github.com/users/qbittorrent/repos","events_url":"https://api.github.com/users/qbittorrent/events{/privacy}","received_events_url":"https://api.github.com/users/qbittorrent/received_events","type":"Organization","site_admin":false},"repo":{"id":3351871,"name":"qBittorrent","full_name":"qbittorrent/qBittorrent","owner":{"login":"qbittorrent","id":2131270,"avatar_url":"https://avatars2.githubusercontent.com/u/2131270?v=4","gravatar_id":"","url":"https://api.github.com/users/qbittorrent","html_url":"https://github.com/qbittorrent","followers_url":"https://api.github.com/users/qbittorrent/followers","following_url":"https://api.github.com/users/qbittorrent/following{/other_user}","gists_url":"https://api.github.com/users/qbittorrent/gists{/gist_id}","starred_url":"https://api.github.com/users/qbittorrent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qbittorrent/subscriptions","organizations_url":"https://api.github.com/users/qbittorrent/orgs","repos_url":"https://api.github.com/users/qbittorrent/repos","events_url":"https://api.github.com/users/qbittorrent/events{/privacy}","received_events_url":"https://api.github.com/users/qbittorrent/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/qbittorrent/qBittorrent","description":"qBittorrent BitTorrent client","fork":false,"url":"https://api.github.com/repos/qbittorrent/qBittorrent","forks_url":"https://api.github.com/repos/qbittorrent/qBittorrent/forks","keys_url":"https://api.github.com/repos/qbittorrent/qBittorrent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qbittorrent/qBittorrent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qbittorrent/qBittorrent/teams","hooks_url":"https://api.github.com/repos/qbittorrent/qBittorrent/hooks","issue_events_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/events{/number}","events_url":"https://api.github.com/repos/qbittorrent/qBittorrent/events","assignees_url":"https://api.github.com/repos/qbittorrent/qBittorrent/assignees{/user}","branches_url":"https://api.github.com/repos/qbittorrent/qBittorrent/branches{/branch}","tags_url":"https://api.github.com/repos/qbittorrent/qBittorrent/tags","blobs_url":"https://api.github.com/repos/qbittorrent/qBittorrent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qbittorrent/qBittorrent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qbittorrent/qBittorrent/git/refs{/sha}","trees_url":"https://api.github.com/repos/qbittorrent/qBittorrent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qbittorrent/qBittorrent/statuses/{sha}","languages_url":"https://api.github.com/repos/qbittorrent/qBittorrent/languages","stargazers_url":"https://api.github.com/repos/qbittorrent/qBittorrent/stargazers","contributors_url":"https://api.github.com/repos/qbittorrent/qBittorrent/contributors","subscribers_url":"https://api.github.com/repos/qbittorrent/qBittorrent/subscribers","subscription_url":"https://api.github.com/repos/qbittorrent/qBittorrent/subscription","commits_url":"https://api.github.com/repos/qbittorrent/qBittorrent/commits{/sha}","git_commits_url":"https://api.github.com/repos/qbittorrent/qBittorrent/git/commits{/sha}","comments_url":"https://api.github.com/repos/qbittorrent/qBittorrent/comments{/number}","issue_comment_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/comments{/number}","contents_url":"https://api.github.com/repos/qbittorrent/qBittorrent/contents/{+path}","compare_url":"https://api.github.com/repos/qbittorrent/qBittorrent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qbittorrent/qBittorrent/merges","archive_url":"https://api.github.com/repos/qbittorrent/qBittorrent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qbittorrent/qBittorrent/downloads","issues_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues{/number}","pulls_url":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls{/number}","milestones_url":"https://api.github.com/repos/qbittorrent/qBittorrent/milestones{/number}","notifications_url":"https://api.github.com/repos/qbittorrent/qBittorrent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qbittorrent/qBittorrent/labels{/name}","releases_url":"https://api.github.com/repos/qbittorrent/qBittorrent/releases{/id}","deployments_url":"https://api.github.com/repos/qbittorrent/qBittorrent/deployments","created_at":"2012-02-04T09:37:46Z","updated_at":"2018-03-22T16:02:25Z","pushed_at":"2018-03-22T16:05:17Z","git_url":"git://github.com/qbittorrent/qBittorrent.git","ssh_url":"git@github.com:qbittorrent/qBittorrent.git","clone_url":"https://github.com/qbittorrent/qBittorrent.git","svn_url":"https://github.com/qbittorrent/qBittorrent","homepage":"https://www.qbittorrent.org","size":161751,"stargazers_count":4046,"watchers_count":4046,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":793,"mirror_url":null,"archived":false,"open_issues_count":2926,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":793,"open_issues":2926,"watchers":4046,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/8584"},"html":{"href":"https://github.com/qbittorrent/qBittorrent/pull/8584"},"issue":{"href":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/8584"},"comments":{"href":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/8584/comments"},"review_comments":{"href":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/8584/comments"},"review_comment":{"href":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/8584/commits"},"statuses":{"href":"https://api.github.com/repos/qbittorrent/qBittorrent/statuses/5574420c9b23674aeaa21d273a5cced500fadb7c"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Chocobo1"}}