{"action":"created","issue":{"url":"https://api.github.com/repos/Flexget/Flexget/issues/422","labels_url":"https://api.github.com/repos/Flexget/Flexget/issues/422/labels{/name}","comments_url":"https://api.github.com/repos/Flexget/Flexget/issues/422/comments","events_url":"https://api.github.com/repos/Flexget/Flexget/issues/422/events","html_url":"https://github.com/Flexget/Flexget/pull/422","id":53934563,"number":422,"title":"Digest plugin","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":1,"created_at":"2015-01-10T00:33:55Z","updated_at":"2015-01-10T02:43:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Flexget/Flexget/pulls/422","html_url":"https://github.com/Flexget/Flexget/pull/422","diff_url":"https://github.com/Flexget/Flexget/pull/422.diff","patch_url":"https://github.com/Flexget/Flexget/pull/422.patch"},"body":"This plugin can be used to collect entries accepted from multiple tasks/over multiple runs, and emit them in another task. Based on ticket http://flexget.com/ticket/1366\r\n\r\nUse cases:\r\n- collect accepted entries from multiple tasks/runs, and send an email containing them all in a different task\r\n- keep last X accepted entries (from multiple tasks/runs) to continue outputting to make_html plugin\r\n- replace the digesting feature of make_rss?\r\n- ???\r\n\r\nStill todo:\r\n- [ ] unit tests\r\n- [ ] count as an output plugin?\r\n\r\nPossible features to add:\r\n- [ ] digest entries in other states than accepted\r\n- [ ] keep former entry state when emitting, or add a field for entry state when added to digest\r\n\r\nExample (daily email setup):\r\n```\r\ntasks:\r\n  download task 1:\r\n    # some stuff to do downloads\r\n    digest: daily email\r\n  download task 2:\r\n    # some stuff to do downloads\r\n    digest: daily email\r\n  daily email task:\r\n    emit_digest:\r\n      list: daily email\r\n    seen: local\r\n    email:\r\n      # the email settings\r\nschedules:\r\n- tasks: [download task 1, download task 2]\r\n  interval: 1 hour\r\n- tasks: daily email task\r\n  interval: 1 day\r\n```\r\nExample (last 50 entries html):\r\n```\r\ntasks:\r\n  download task 1:\r\n    # some stuff to do downloads\r\n    digest: recently accepted\r\n  download task 2:\r\n    # some stuff to do downloads\r\n    digest: recently accepted\r\n  generate html:\r\n    emit_digest:\r\n      list: recently accepted\r\n      limit: 50\r\n      expire: no\r\n    seen: no\r\n    make_html:\r\n      # the make_html settings\r\nschedules:\r\n- tasks: [download task 1, download task 2, generate html]\r\n  interval: 1 hour\r\n```"},"comment":{"url":"https://api.github.com/repos/Flexget/Flexget/issues/comments/69435100","html_url":"https://github.com/Flexget/Flexget/pull/422#issuecomment-69435100","issue_url":"https://api.github.com/repos/Flexget/Flexget/issues/422","id":69435100,"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},"created_at":"2015-01-10T02:43:27Z","updated_at":"2015-01-10T02:43:27Z","body":"@paranoidi General thoughts? Thoughts on the possible feature list?"}}