{"action":"created","comment":{"url":"https://api.github.com/repos/Tribler/tribler/pulls/comments/88779945","pull_request_review_id":9345893,"id":88779945,"diff_hunk":"@@ -1525,6 +1525,17 @@ def on_remove_torrent_from_dispersy(self, channel_id, dispersy_id, redo):\n \n         self.notifier.notify(NTFY_CHANNELCAST, NTFY_UPDATE, channel_id)\n \n+        sql = \"\"\"SELECT infohash, dispersy_cid FROM Torrent, _ChannelTorrents, Channels\n+        WHERE Torrent.torrent_id = _ChannelTorrents.torrent_id\n+        AND _ChannelTorrents.channel_id = ? AND _ChannelTorrents.dispersy_id = ?\n+        AND Channels.id = _ChannelTorrents.channel_id\"\"\"\n+        infohash, dispersy_cid = self._db.fetchone(sql, (channel_id, dispersy_id))\n+\n+        if infohash:\n+            self.notifier.notify(NTFY_TORRENTS, NTFY_DELETE, None,","path":"Tribler/Core/CacheDB/SqliteCacheDBHandler.py","position":11,"original_position":11,"commit_id":"a981836671f92d0bef8c8d017d984cd9150ddf66","original_commit_id":"a981836671f92d0bef8c8d017d984cd9150ddf66","user":{"login":"brussee","id":738052,"avatar_url":"https://avatars.githubusercontent.com/u/738052?v=3","gravatar_id":"","url":"https://api.github.com/users/brussee","html_url":"https://github.com/brussee","followers_url":"https://api.github.com/users/brussee/followers","following_url":"https://api.github.com/users/brussee/following{/other_user}","gists_url":"https://api.github.com/users/brussee/gists{/gist_id}","starred_url":"https://api.github.com/users/brussee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brussee/subscriptions","organizations_url":"https://api.github.com/users/brussee/orgs","repos_url":"https://api.github.com/users/brussee/repos","events_url":"https://api.github.com/users/brussee/events{/privacy}","received_events_url":"https://api.github.com/users/brussee/received_events","type":"User","site_admin":false},"body":"For consistency with other events the None here should be channel_id (L1515).","created_at":"2016-11-19T13:56:46Z","updated_at":"2016-11-19T13:56:46Z","html_url":"https://github.com/Tribler/tribler/pull/2633#discussion_r88779945","pull_request_url":"https://api.github.com/repos/Tribler/tribler/pulls/2633","_links":{"self":{"href":"https://api.github.com/repos/Tribler/tribler/pulls/comments/88779945"},"html":{"href":"https://github.com/Tribler/tribler/pull/2633#discussion_r88779945"},"pull_request":{"href":"https://api.github.com/repos/Tribler/tribler/pulls/2633"}}},"pull_request":{"url":"https://api.github.com/repos/Tribler/tribler/pulls/2633","id":94479409,"html_url":"https://github.com/Tribler/tribler/pull/2633","diff_url":"https://github.com/Tribler/tribler/pull/2633.diff","patch_url":"https://github.com/Tribler/tribler/pull/2633.patch","issue_url":"https://api.github.com/repos/Tribler/tribler/issues/2633","number":2633,"state":"closed","locked":false,"title":"WIP: Removed cherrypy from tunnel helper, added torrent removed event","user":{"login":"devos50","id":1707075,"avatar_url":"https://avatars.githubusercontent.com/u/1707075?v=3","gravatar_id":"","url":"https://api.github.com/users/devos50","html_url":"https://github.com/devos50","followers_url":"https://api.github.com/users/devos50/followers","following_url":"https://api.github.com/users/devos50/following{/other_user}","gists_url":"https://api.github.com/users/devos50/gists{/gist_id}","starred_url":"https://api.github.com/users/devos50/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devos50/subscriptions","organizations_url":"https://api.github.com/users/devos50/orgs","repos_url":"https://api.github.com/users/devos50/repos","events_url":"https://api.github.com/users/devos50/events{/privacy}","received_events_url":"https://api.github.com/users/devos50/received_events","type":"User","site_admin":false},"body":"Credits to @brussee for the remove torrent event (I didn't cherry-pick the commit).\r\n\r\nFixes #2239, fixes #2584","created_at":"2016-11-19T11:35:53Z","updated_at":"2016-11-19T13:56:46Z","closed_at":"2016-11-19T11:47:29Z","merged_at":"2016-11-19T11:47:29Z","merge_commit_sha":"105892a653dbb3330b5c062fe94079ea1eda9dda","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Tribler/tribler/pulls/2633/commits","review_comments_url":"https://api.github.com/repos/Tribler/tribler/pulls/2633/comments","review_comment_url":"https://api.github.com/repos/Tribler/tribler/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Tribler/tribler/issues/2633/comments","statuses_url":"https://api.github.com/repos/Tribler/tribler/statuses/a981836671f92d0bef8c8d017d984cd9150ddf66","head":{"label":"devos50:remove_cp_tunnel","ref":"remove_cp_tunnel","sha":"a981836671f92d0bef8c8d017d984cd9150ddf66","user":{"login":"devos50","id":1707075,"avatar_url":"https://avatars.githubusercontent.com/u/1707075?v=3","gravatar_id":"","url":"https://api.github.com/users/devos50","html_url":"https://github.com/devos50","followers_url":"https://api.github.com/users/devos50/followers","following_url":"https://api.github.com/users/devos50/following{/other_user}","gists_url":"https://api.github.com/users/devos50/gists{/gist_id}","starred_url":"https://api.github.com/users/devos50/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devos50/subscriptions","organizations_url":"https://api.github.com/users/devos50/orgs","repos_url":"https://api.github.com/users/devos50/repos","events_url":"https://api.github.com/users/devos50/events{/privacy}","received_events_url":"https://api.github.com/users/devos50/received_events","type":"User","site_admin":false},"repo":{"id":45194074,"name":"tribler","full_name":"devos50/tribler","owner":{"login":"devos50","id":1707075,"avatar_url":"https://avatars.githubusercontent.com/u/1707075?v=3","gravatar_id":"","url":"https://api.github.com/users/devos50","html_url":"https://github.com/devos50","followers_url":"https://api.github.com/users/devos50/followers","following_url":"https://api.github.com/users/devos50/following{/other_user}","gists_url":"https://api.github.com/users/devos50/gists{/gist_id}","starred_url":"https://api.github.com/users/devos50/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devos50/subscriptions","organizations_url":"https://api.github.com/users/devos50/orgs","repos_url":"https://api.github.com/users/devos50/repos","events_url":"https://api.github.com/users/devos50/events{/privacy}","received_events_url":"https://api.github.com/users/devos50/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/devos50/tribler","description":"Privacy with BitTorrent and resilient to shut down","fork":true,"url":"https://api.github.com/repos/devos50/tribler","forks_url":"https://api.github.com/repos/devos50/tribler/forks","keys_url":"https://api.github.com/repos/devos50/tribler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/devos50/tribler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/devos50/tribler/teams","hooks_url":"https://api.github.com/repos/devos50/tribler/hooks","issue_events_url":"https://api.github.com/repos/devos50/tribler/issues/events{/number}","events_url":"https://api.github.com/repos/devos50/tribler/events","assignees_url":"https://api.github.com/repos/devos50/tribler/assignees{/user}","branches_url":"https://api.github.com/repos/devos50/tribler/branches{/branch}","tags_url":"https://api.github.com/repos/devos50/tribler/tags","blobs_url":"https://api.github.com/repos/devos50/tribler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/devos50/tribler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/devos50/tribler/git/refs{/sha}","trees_url":"https://api.github.com/repos/devos50/tribler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/devos50/tribler/statuses/{sha}","languages_url":"https://api.github.com/repos/devos50/tribler/languages","stargazers_url":"https://api.github.com/repos/devos50/tribler/stargazers","contributors_url":"https://api.github.com/repos/devos50/tribler/contributors","subscribers_url":"https://api.github.com/repos/devos50/tribler/subscribers","subscription_url":"https://api.github.com/repos/devos50/tribler/subscription","commits_url":"https://api.github.com/repos/devos50/tribler/commits{/sha}","git_commits_url":"https://api.github.com/repos/devos50/tribler/git/commits{/sha}","comments_url":"https://api.github.com/repos/devos50/tribler/comments{/number}","issue_comment_url":"https://api.github.com/repos/devos50/tribler/issues/comments{/number}","contents_url":"https://api.github.com/repos/devos50/tribler/contents/{+path}","compare_url":"https://api.github.com/repos/devos50/tribler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/devos50/tribler/merges","archive_url":"https://api.github.com/repos/devos50/tribler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/devos50/tribler/downloads","issues_url":"https://api.github.com/repos/devos50/tribler/issues{/number}","pulls_url":"https://api.github.com/repos/devos50/tribler/pulls{/number}","milestones_url":"https://api.github.com/repos/devos50/tribler/milestones{/number}","notifications_url":"https://api.github.com/repos/devos50/tribler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/devos50/tribler/labels{/name}","releases_url":"https://api.github.com/repos/devos50/tribler/releases{/id}","deployments_url":"https://api.github.com/repos/devos50/tribler/deployments","created_at":"2015-10-29T15:57:50Z","updated_at":"2015-11-20T16:00:03Z","pushed_at":"2016-11-19T13:47:47Z","git_url":"git://github.com/devos50/tribler.git","ssh_url":"git@github.com:devos50/tribler.git","clone_url":"https://github.com/devos50/tribler.git","svn_url":"https://github.com/devos50/tribler","homepage":"http://www.tribler.org","size":116722,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":12,"forks":0,"open_issues":12,"watchers":0,"default_branch":"devel"}},"base":{"label":"Tribler:devel","ref":"devel","sha":"fbff722e55e1a5d697fd83ff4f26bed247c19701","user":{"login":"Tribler","id":2913489,"avatar_url":"https://avatars.githubusercontent.com/u/2913489?v=3","gravatar_id":"","url":"https://api.github.com/users/Tribler","html_url":"https://github.com/Tribler","followers_url":"https://api.github.com/users/Tribler/followers","following_url":"https://api.github.com/users/Tribler/following{/other_user}","gists_url":"https://api.github.com/users/Tribler/gists{/gist_id}","starred_url":"https://api.github.com/users/Tribler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tribler/subscriptions","organizations_url":"https://api.github.com/users/Tribler/orgs","repos_url":"https://api.github.com/users/Tribler/repos","events_url":"https://api.github.com/users/Tribler/events{/privacy}","received_events_url":"https://api.github.com/users/Tribler/received_events","type":"Organization","site_admin":false},"repo":{"id":8411137,"name":"tribler","full_name":"Tribler/tribler","owner":{"login":"Tribler","id":2913489,"avatar_url":"https://avatars.githubusercontent.com/u/2913489?v=3","gravatar_id":"","url":"https://api.github.com/users/Tribler","html_url":"https://github.com/Tribler","followers_url":"https://api.github.com/users/Tribler/followers","following_url":"https://api.github.com/users/Tribler/following{/other_user}","gists_url":"https://api.github.com/users/Tribler/gists{/gist_id}","starred_url":"https://api.github.com/users/Tribler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tribler/subscriptions","organizations_url":"https://api.github.com/users/Tribler/orgs","repos_url":"https://api.github.com/users/Tribler/repos","events_url":"https://api.github.com/users/Tribler/events{/privacy}","received_events_url":"https://api.github.com/users/Tribler/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Tribler/tribler","description":"Privacy enhanced BitTorrent client with P2P content discovery","fork":false,"url":"https://api.github.com/repos/Tribler/tribler","forks_url":"https://api.github.com/repos/Tribler/tribler/forks","keys_url":"https://api.github.com/repos/Tribler/tribler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tribler/tribler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tribler/tribler/teams","hooks_url":"https://api.github.com/repos/Tribler/tribler/hooks","issue_events_url":"https://api.github.com/repos/Tribler/tribler/issues/events{/number}","events_url":"https://api.github.com/repos/Tribler/tribler/events","assignees_url":"https://api.github.com/repos/Tribler/tribler/assignees{/user}","branches_url":"https://api.github.com/repos/Tribler/tribler/branches{/branch}","tags_url":"https://api.github.com/repos/Tribler/tribler/tags","blobs_url":"https://api.github.com/repos/Tribler/tribler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tribler/tribler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tribler/tribler/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tribler/tribler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tribler/tribler/statuses/{sha}","languages_url":"https://api.github.com/repos/Tribler/tribler/languages","stargazers_url":"https://api.github.com/repos/Tribler/tribler/stargazers","contributors_url":"https://api.github.com/repos/Tribler/tribler/contributors","subscribers_url":"https://api.github.com/repos/Tribler/tribler/subscribers","subscription_url":"https://api.github.com/repos/Tribler/tribler/subscription","commits_url":"https://api.github.com/repos/Tribler/tribler/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tribler/tribler/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tribler/tribler/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tribler/tribler/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tribler/tribler/contents/{+path}","compare_url":"https://api.github.com/repos/Tribler/tribler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tribler/tribler/merges","archive_url":"https://api.github.com/repos/Tribler/tribler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tribler/tribler/downloads","issues_url":"https://api.github.com/repos/Tribler/tribler/issues{/number}","pulls_url":"https://api.github.com/repos/Tribler/tribler/pulls{/number}","milestones_url":"https://api.github.com/repos/Tribler/tribler/milestones{/number}","notifications_url":"https://api.github.com/repos/Tribler/tribler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tribler/tribler/labels{/name}","releases_url":"https://api.github.com/repos/Tribler/tribler/releases{/id}","deployments_url":"https://api.github.com/repos/Tribler/tribler/deployments","created_at":"2013-02-25T14:51:58Z","updated_at":"2016-11-19T09:14:47Z","pushed_at":"2016-11-19T13:47:48Z","git_url":"git://github.com/Tribler/tribler.git","ssh_url":"git@github.com:Tribler/tribler.git","clone_url":"https://github.com/Tribler/tribler.git","svn_url":"https://github.com/Tribler/tribler","homepage":"http://www.tribler.org","size":149970,"stargazers_count":2012,"watchers_count":2012,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":223,"mirror_url":null,"open_issues_count":297,"forks":223,"open_issues":297,"watchers":2012,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/Tribler/tribler/pulls/2633"},"html":{"href":"https://github.com/Tribler/tribler/pull/2633"},"issue":{"href":"https://api.github.com/repos/Tribler/tribler/issues/2633"},"comments":{"href":"https://api.github.com/repos/Tribler/tribler/issues/2633/comments"},"review_comments":{"href":"https://api.github.com/repos/Tribler/tribler/pulls/2633/comments"},"review_comment":{"href":"https://api.github.com/repos/Tribler/tribler/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Tribler/tribler/pulls/2633/commits"},"statuses":{"href":"https://api.github.com/repos/Tribler/tribler/statuses/a981836671f92d0bef8c8d017d984cd9150ddf66"}}}}
{"actor":{"display_login":"brussee"}}