{"action":"created","comment":{"url":"https://api.github.com/repos/Flexget/Flexget/pulls/comments/89285188","pull_request_review_id":9830988,"id":89285188,"diff_hunk":"@@ -317,8 +367,12 @@ def on_get_torrents_status(torrents):\n             client.disconnect()\n \n         filter = config.get('filter', {})\n+\n+        extraKeys = config.get('keys', [])","path":"flexget/plugins/clients/deluge.py","position":78,"original_position":78,"commit_id":"17ae0e94a6cac3dadf56486d3a94edddfe26abcd","original_commit_id":"17ae0e94a6cac3dadf56486d3a94edddfe26abcd","user":{"login":"paranoidi","id":504877,"avatar_url":"https://avatars.githubusercontent.com/u/504877?v=3","gravatar_id":"","url":"https://api.github.com/users/paranoidi","html_url":"https://github.com/paranoidi","followers_url":"https://api.github.com/users/paranoidi/followers","following_url":"https://api.github.com/users/paranoidi/following{/other_user}","gists_url":"https://api.github.com/users/paranoidi/gists{/gist_id}","starred_url":"https://api.github.com/users/paranoidi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paranoidi/subscriptions","organizations_url":"https://api.github.com/users/paranoidi/orgs","repos_url":"https://api.github.com/users/paranoidi/repos","events_url":"https://api.github.com/users/paranoidi/events{/privacy}","received_events_url":"https://api.github.com/users/paranoidi/received_events","type":"User","site_admin":false},"body":"pep8","created_at":"2016-11-23T10:09:46Z","updated_at":"2016-11-23T10:09:46Z","html_url":"https://github.com/Flexget/Flexget/pull/1505#discussion_r89285188","pull_request_url":"https://api.github.com/repos/Flexget/Flexget/pulls/1505","_links":{"self":{"href":"https://api.github.com/repos/Flexget/Flexget/pulls/comments/89285188"},"html":{"href":"https://github.com/Flexget/Flexget/pull/1505#discussion_r89285188"},"pull_request":{"href":"https://api.github.com/repos/Flexget/Flexget/pulls/1505"}}},"pull_request":{"url":"https://api.github.com/repos/Flexget/Flexget/pulls/1505","id":94152615,"html_url":"https://github.com/Flexget/Flexget/pull/1505","diff_url":"https://github.com/Flexget/Flexget/pull/1505.diff","patch_url":"https://github.com/Flexget/Flexget/pull/1505.patch","issue_url":"https://api.github.com/repos/Flexget/Flexget/issues/1505","number":1505,"state":"open","locked":false,"title":"Allow user to specify extra keys wanted to be populated with from_deluge","user":{"login":"Tommatheussen","id":13683094,"avatar_url":"https://avatars.githubusercontent.com/u/13683094?v=3","gravatar_id":"","url":"https://api.github.com/users/Tommatheussen","html_url":"https://github.com/Tommatheussen","followers_url":"https://api.github.com/users/Tommatheussen/followers","following_url":"https://api.github.com/users/Tommatheussen/following{/other_user}","gists_url":"https://api.github.com/users/Tommatheussen/gists{/gist_id}","starred_url":"https://api.github.com/users/Tommatheussen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tommatheussen/subscriptions","organizations_url":"https://api.github.com/users/Tommatheussen/orgs","repos_url":"https://api.github.com/users/Tommatheussen/repos","events_url":"https://api.github.com/users/Tommatheussen/events{/privacy}","received_events_url":"https://api.github.com/users/Tommatheussen/received_events","type":"User","site_admin":false},"body":"### Motivation for changes:\r\nThe from_deluge only loads a default set of keys, but Deluge can send a lot more.\r\nAdding an optional keys property allows the user to specify which extra keys the plugin should load.\r\n\r\n### Detailed changes:\r\n- Added `keys` array property to `from_deluge`\r\n- Can only be populated with a valid item from the `extra_settings_map` dict\r\n- `from_deluge` will load the extra keys and perform conversions necessary (like seconds -> hours etc)\r\n\r\n### Config usage if relevant (new plugin or updated schema):\r\n```\r\nfrom_deluge:\r\n  keys:\r\n    - 'active_time'\r\n    - 'remove_at_ratio'\r\n    - ...\r\n```\r\n### Log and/or tests output (preferably both):\r\n```\r\nNothing yet, can't test deluge at work, will provide tonight\r\n```\r\n","created_at":"2016-11-17T11:50:43Z","updated_at":"2016-11-23T10:09:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"da3c995a08ebe39b1e50584d5ada3e897712ed6e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Flexget/Flexget/pulls/1505/commits","review_comments_url":"https://api.github.com/repos/Flexget/Flexget/pulls/1505/comments","review_comment_url":"https://api.github.com/repos/Flexget/Flexget/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Flexget/Flexget/issues/1505/comments","statuses_url":"https://api.github.com/repos/Flexget/Flexget/statuses/17ae0e94a6cac3dadf56486d3a94edddfe26abcd","head":{"label":"Tommatheussen:from_deluge_keys","ref":"from_deluge_keys","sha":"17ae0e94a6cac3dadf56486d3a94edddfe26abcd","user":{"login":"Tommatheussen","id":13683094,"avatar_url":"https://avatars.githubusercontent.com/u/13683094?v=3","gravatar_id":"","url":"https://api.github.com/users/Tommatheussen","html_url":"https://github.com/Tommatheussen","followers_url":"https://api.github.com/users/Tommatheussen/followers","following_url":"https://api.github.com/users/Tommatheussen/following{/other_user}","gists_url":"https://api.github.com/users/Tommatheussen/gists{/gist_id}","starred_url":"https://api.github.com/users/Tommatheussen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tommatheussen/subscriptions","organizations_url":"https://api.github.com/users/Tommatheussen/orgs","repos_url":"https://api.github.com/users/Tommatheussen/repos","events_url":"https://api.github.com/users/Tommatheussen/events{/privacy}","received_events_url":"https://api.github.com/users/Tommatheussen/received_events","type":"User","site_admin":false},"repo":{"id":66095202,"name":"Flexget","full_name":"Tommatheussen/Flexget","owner":{"login":"Tommatheussen","id":13683094,"avatar_url":"https://avatars.githubusercontent.com/u/13683094?v=3","gravatar_id":"","url":"https://api.github.com/users/Tommatheussen","html_url":"https://github.com/Tommatheussen","followers_url":"https://api.github.com/users/Tommatheussen/followers","following_url":"https://api.github.com/users/Tommatheussen/following{/other_user}","gists_url":"https://api.github.com/users/Tommatheussen/gists{/gist_id}","starred_url":"https://api.github.com/users/Tommatheussen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tommatheussen/subscriptions","organizations_url":"https://api.github.com/users/Tommatheussen/orgs","repos_url":"https://api.github.com/users/Tommatheussen/repos","events_url":"https://api.github.com/users/Tommatheussen/events{/privacy}","received_events_url":"https://api.github.com/users/Tommatheussen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Tommatheussen/Flexget","description":"The official FlexGet repository","fork":true,"url":"https://api.github.com/repos/Tommatheussen/Flexget","forks_url":"https://api.github.com/repos/Tommatheussen/Flexget/forks","keys_url":"https://api.github.com/repos/Tommatheussen/Flexget/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tommatheussen/Flexget/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tommatheussen/Flexget/teams","hooks_url":"https://api.github.com/repos/Tommatheussen/Flexget/hooks","issue_events_url":"https://api.github.com/repos/Tommatheussen/Flexget/issues/events{/number}","events_url":"https://api.github.com/repos/Tommatheussen/Flexget/events","assignees_url":"https://api.github.com/repos/Tommatheussen/Flexget/assignees{/user}","branches_url":"https://api.github.com/repos/Tommatheussen/Flexget/branches{/branch}","tags_url":"https://api.github.com/repos/Tommatheussen/Flexget/tags","blobs_url":"https://api.github.com/repos/Tommatheussen/Flexget/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tommatheussen/Flexget/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tommatheussen/Flexget/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tommatheussen/Flexget/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tommatheussen/Flexget/statuses/{sha}","languages_url":"https://api.github.com/repos/Tommatheussen/Flexget/languages","stargazers_url":"https://api.github.com/repos/Tommatheussen/Flexget/stargazers","contributors_url":"https://api.github.com/repos/Tommatheussen/Flexget/contributors","subscribers_url":"https://api.github.com/repos/Tommatheussen/Flexget/subscribers","subscription_url":"https://api.github.com/repos/Tommatheussen/Flexget/subscription","commits_url":"https://api.github.com/repos/Tommatheussen/Flexget/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tommatheussen/Flexget/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tommatheussen/Flexget/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tommatheussen/Flexget/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tommatheussen/Flexget/contents/{+path}","compare_url":"https://api.github.com/repos/Tommatheussen/Flexget/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tommatheussen/Flexget/merges","archive_url":"https://api.github.com/repos/Tommatheussen/Flexget/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tommatheussen/Flexget/downloads","issues_url":"https://api.github.com/repos/Tommatheussen/Flexget/issues{/number}","pulls_url":"https://api.github.com/repos/Tommatheussen/Flexget/pulls{/number}","milestones_url":"https://api.github.com/repos/Tommatheussen/Flexget/milestones{/number}","notifications_url":"https://api.github.com/repos/Tommatheussen/Flexget/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tommatheussen/Flexget/labels{/name}","releases_url":"https://api.github.com/repos/Tommatheussen/Flexget/releases{/id}","deployments_url":"https://api.github.com/repos/Tommatheussen/Flexget/deployments","created_at":"2016-08-19T16:09:34Z","updated_at":"2016-08-19T16:09:45Z","pushed_at":"2016-11-17T11:45:22Z","git_url":"git://github.com/Tommatheussen/Flexget.git","ssh_url":"git@github.com:Tommatheussen/Flexget.git","clone_url":"https://github.com/Tommatheussen/Flexget.git","svn_url":"https://github.com/Tommatheussen/Flexget","homepage":"http://www.flexget.com","size":47903,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"Flexget:develop","ref":"develop","sha":"795faa318c5ea3ea9f794f034a190dc8a8a70e7e","user":{"login":"Flexget","id":682553,"avatar_url":"https://avatars.githubusercontent.com/u/682553?v=3","gravatar_id":"","url":"https://api.github.com/users/Flexget","html_url":"https://github.com/Flexget","followers_url":"https://api.github.com/users/Flexget/followers","following_url":"https://api.github.com/users/Flexget/following{/other_user}","gists_url":"https://api.github.com/users/Flexget/gists{/gist_id}","starred_url":"https://api.github.com/users/Flexget/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Flexget/subscriptions","organizations_url":"https://api.github.com/users/Flexget/orgs","repos_url":"https://api.github.com/users/Flexget/repos","events_url":"https://api.github.com/users/Flexget/events{/privacy}","received_events_url":"https://api.github.com/users/Flexget/received_events","type":"Organization","site_admin":false},"repo":{"id":1512901,"name":"Flexget","full_name":"Flexget/Flexget","owner":{"login":"Flexget","id":682553,"avatar_url":"https://avatars.githubusercontent.com/u/682553?v=3","gravatar_id":"","url":"https://api.github.com/users/Flexget","html_url":"https://github.com/Flexget","followers_url":"https://api.github.com/users/Flexget/followers","following_url":"https://api.github.com/users/Flexget/following{/other_user}","gists_url":"https://api.github.com/users/Flexget/gists{/gist_id}","starred_url":"https://api.github.com/users/Flexget/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Flexget/subscriptions","organizations_url":"https://api.github.com/users/Flexget/orgs","repos_url":"https://api.github.com/users/Flexget/repos","events_url":"https://api.github.com/users/Flexget/events{/privacy}","received_events_url":"https://api.github.com/users/Flexget/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Flexget/Flexget","description":"The official FlexGet repository","fork":false,"url":"https://api.github.com/repos/Flexget/Flexget","forks_url":"https://api.github.com/repos/Flexget/Flexget/forks","keys_url":"https://api.github.com/repos/Flexget/Flexget/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Flexget/Flexget/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Flexget/Flexget/teams","hooks_url":"https://api.github.com/repos/Flexget/Flexget/hooks","issue_events_url":"https://api.github.com/repos/Flexget/Flexget/issues/events{/number}","events_url":"https://api.github.com/repos/Flexget/Flexget/events","assignees_url":"https://api.github.com/repos/Flexget/Flexget/assignees{/user}","branches_url":"https://api.github.com/repos/Flexget/Flexget/branches{/branch}","tags_url":"https://api.github.com/repos/Flexget/Flexget/tags","blobs_url":"https://api.github.com/repos/Flexget/Flexget/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Flexget/Flexget/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Flexget/Flexget/git/refs{/sha}","trees_url":"https://api.github.com/repos/Flexget/Flexget/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Flexget/Flexget/statuses/{sha}","languages_url":"https://api.github.com/repos/Flexget/Flexget/languages","stargazers_url":"https://api.github.com/repos/Flexget/Flexget/stargazers","contributors_url":"https://api.github.com/repos/Flexget/Flexget/contributors","subscribers_url":"https://api.github.com/repos/Flexget/Flexget/subscribers","subscription_url":"https://api.github.com/repos/Flexget/Flexget/subscription","commits_url":"https://api.github.com/repos/Flexget/Flexget/commits{/sha}","git_commits_url":"https://api.github.com/repos/Flexget/Flexget/git/commits{/sha}","comments_url":"https://api.github.com/repos/Flexget/Flexget/comments{/number}","issue_comment_url":"https://api.github.com/repos/Flexget/Flexget/issues/comments{/number}","contents_url":"https://api.github.com/repos/Flexget/Flexget/contents/{+path}","compare_url":"https://api.github.com/repos/Flexget/Flexget/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Flexget/Flexget/merges","archive_url":"https://api.github.com/repos/Flexget/Flexget/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Flexget/Flexget/downloads","issues_url":"https://api.github.com/repos/Flexget/Flexget/issues{/number}","pulls_url":"https://api.github.com/repos/Flexget/Flexget/pulls{/number}","milestones_url":"https://api.github.com/repos/Flexget/Flexget/milestones{/number}","notifications_url":"https://api.github.com/repos/Flexget/Flexget/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Flexget/Flexget/labels{/name}","releases_url":"https://api.github.com/repos/Flexget/Flexget/releases{/id}","deployments_url":"https://api.github.com/repos/Flexget/Flexget/deployments","created_at":"2011-03-22T19:33:44Z","updated_at":"2016-11-22T04:50:17Z","pushed_at":"2016-11-23T09:58:59Z","git_url":"git://github.com/Flexget/Flexget.git","ssh_url":"git@github.com:Flexget/Flexget.git","clone_url":"https://github.com/Flexget/Flexget.git","svn_url":"https://github.com/Flexget/Flexget","homepage":"http://www.flexget.com","size":56020,"stargazers_count":583,"watchers_count":583,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":323,"mirror_url":null,"open_issues_count":85,"forks":323,"open_issues":85,"watchers":583,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Flexget/Flexget/pulls/1505"},"html":{"href":"https://github.com/Flexget/Flexget/pull/1505"},"issue":{"href":"https://api.github.com/repos/Flexget/Flexget/issues/1505"},"comments":{"href":"https://api.github.com/repos/Flexget/Flexget/issues/1505/comments"},"review_comments":{"href":"https://api.github.com/repos/Flexget/Flexget/pulls/1505/comments"},"review_comment":{"href":"https://api.github.com/repos/Flexget/Flexget/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Flexget/Flexget/pulls/1505/commits"},"statuses":{"href":"https://api.github.com/repos/Flexget/Flexget/statuses/17ae0e94a6cac3dadf56486d3a94edddfe26abcd"}}}}
{"actor":{"display_login":"paranoidi"}}