{"action":"created","issue":{"url":"https://api.github.com/repos/Flexget/Flexget/issues/854","repository_url":"https://api.github.com/repos/Flexget/Flexget","labels_url":"https://api.github.com/repos/Flexget/Flexget/issues/854/labels{/name}","comments_url":"https://api.github.com/repos/Flexget/Flexget/issues/854/comments","events_url":"https://api.github.com/repos/Flexget/Flexget/issues/854/events","html_url":"https://github.com/Flexget/Flexget/pull/854","id":131827360,"number":854,"title":"[wip] Generic list interface","user":{"login":"gazpachoking","id":187133,"avatar_url":"https://avatars.githubusercontent.com/u/187133?v=3","gravatar_id":"","url":"https://api.github.com/users/gazpachoking","html_url":"https://github.com/gazpachoking","followers_url":"https://api.github.com/users/gazpachoking/followers","following_url":"https://api.github.com/users/gazpachoking/following{/other_user}","gists_url":"https://api.github.com/users/gazpachoking/gists{/gist_id}","starred_url":"https://api.github.com/users/gazpachoking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gazpachoking/subscriptions","organizations_url":"https://api.github.com/users/gazpachoking/orgs","repos_url":"https://api.github.com/users/gazpachoking/repos","events_url":"https://api.github.com/users/gazpachoking/events{/privacy}","received_events_url":"https://api.github.com/users/gazpachoking/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-02-06T06:24:45Z","updated_at":"2016-02-16T15:48:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Flexget/Flexget/pulls/854","html_url":"https://github.com/Flexget/Flexget/pull/854","diff_url":"https://github.com/Flexget/Flexget/pull/854.diff","patch_url":"https://github.com/Flexget/Flexget/pull/854.patch"},"body":"Start of this idea:\r\n\r\nhttp://flexget.com/wiki/Drafts/ListInterface\r\n\r\nSo far just hacking trakt_add, trakt_remove, and trakt_list into one plugin which implements a standard interface for adding removing and getting a list (add_entries, remove_entries, and list_entries)\r\n\r\nStuff to figure:\r\n- there are some lists that work with trakt_list, but we can't add/remove from (the ratings lists.) Maybe we throw some defined error when the current config doesn't allow the requested operation.\r\n- Perhaps we should enforce the methods of the list objects to take the session keyword, so that for plugins using the database we can control the session from an outside scope if needed. Or maybe have it passed in on init is better and get rid of all the with_sessions"},"comment":{"url":"https://api.github.com/repos/Flexget/Flexget/issues/comments/184740400","html_url":"https://github.com/Flexget/Flexget/pull/854#issuecomment-184740400","issue_url":"https://api.github.com/repos/Flexget/Flexget/issues/854","id":184740400,"user":{"login":"landscape-bot","id":10010231,"avatar_url":"https://avatars.githubusercontent.com/u/10010231?v=3","gravatar_id":"","url":"https://api.github.com/users/landscape-bot","html_url":"https://github.com/landscape-bot","followers_url":"https://api.github.com/users/landscape-bot/followers","following_url":"https://api.github.com/users/landscape-bot/following{/other_user}","gists_url":"https://api.github.com/users/landscape-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/landscape-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/landscape-bot/subscriptions","organizations_url":"https://api.github.com/users/landscape-bot/orgs","repos_url":"https://api.github.com/users/landscape-bot/repos","events_url":"https://api.github.com/users/landscape-bot/events{/privacy}","received_events_url":"https://api.github.com/users/landscape-bot/received_events","type":"User","site_admin":false},"created_at":"2016-02-16T15:48:28Z","updated_at":"2016-02-16T15:48:28Z","body":"[![Code Health](https://landscape.io/badge/305253/landscape.svg?style=flat)](https://landscape.io/diff/282891)\nRepository health decreased by 0.18% when pulling **[e78e138](https://github.com/Flexget/Flexget/commit/e78e1387e123bba582a6b716635b653d25b9f450) on list_interface** into **[bf63612](https://github.com/Flexget/Flexget/commit/bf6361220d73a8974881ab8de49a881b895f2143) on develop**.\n\n * [46 new problems were found](https://landscape.io/diff/282891) (including 3 errors and 37 code smells).\n * [10 problems were fixed](https://landscape.io/diff/282891/fixed) (including 0 errors and 5 code smells)."}}