{"action":"created","issue":{"url":"https://api.github.com/repos/AntennaPod/AntennaPod/issues/706","labels_url":"https://api.github.com/repos/AntennaPod/AntennaPod/issues/706/labels{/name}","comments_url":"https://api.github.com/repos/AntennaPod/AntennaPod/issues/706/comments","events_url":"https://api.github.com/repos/AntennaPod/AntennaPod/issues/706/events","html_url":"https://github.com/AntennaPod/AntennaPod/pull/706","id":65785425,"number":706,"title":"Sync episode actions with gpodder, smart mark as played","user":{"login":"mfietz","id":6860662,"avatar_url":"https://avatars.githubusercontent.com/u/6860662?v=3","gravatar_id":"","url":"https://api.github.com/users/mfietz","html_url":"https://github.com/mfietz","followers_url":"https://api.github.com/users/mfietz/followers","following_url":"https://api.github.com/users/mfietz/following{/other_user}","gists_url":"https://api.github.com/users/mfietz/gists{/gist_id}","starred_url":"https://api.github.com/users/mfietz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfietz/subscriptions","organizations_url":"https://api.github.com/users/mfietz/orgs","repos_url":"https://api.github.com/users/mfietz/repos","events_url":"https://api.github.com/users/mfietz/events{/privacy}","received_events_url":"https://api.github.com/users/mfietz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/AntennaPod/AntennaPod/labels/awaiting%20review","name":"awaiting review","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/AntennaPod/AntennaPod/milestones/21","html_url":"https://github.com/AntennaPod/AntennaPod/milestones/1.1","labels_url":"https://api.github.com/repos/AntennaPod/AntennaPod/milestones/21/labels","id":1040967,"number":21,"title":"1.1","description":null,"creator":{"login":"TomHennen","id":5216560,"avatar_url":"https://avatars.githubusercontent.com/u/5216560?v=3","gravatar_id":"","url":"https://api.github.com/users/TomHennen","html_url":"https://github.com/TomHennen","followers_url":"https://api.github.com/users/TomHennen/followers","following_url":"https://api.github.com/users/TomHennen/following{/other_user}","gists_url":"https://api.github.com/users/TomHennen/gists{/gist_id}","starred_url":"https://api.github.com/users/TomHennen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomHennen/subscriptions","organizations_url":"https://api.github.com/users/TomHennen/orgs","repos_url":"https://api.github.com/users/TomHennen/repos","events_url":"https://api.github.com/users/TomHennen/events{/privacy}","received_events_url":"https://api.github.com/users/TomHennen/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":3,"state":"open","created_at":"2015-03-27T01:01:20Z","updated_at":"2015-04-05T20:45:58Z","due_on":null,"closed_at":null},"comments":23,"created_at":"2015-04-01T21:44:45Z","updated_at":"2015-04-05T21:17:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/AntennaPod/AntennaPod/pulls/706","html_url":"https://github.com/AntennaPod/AntennaPod/pull/706","diff_url":"https://github.com/AntennaPod/AntennaPod/pull/706.diff","patch_url":"https://github.com/AntennaPod/AntennaPod/pull/706.patch"},"body":"Closes AntennaPod/AntennaPod#539\r\nCloses AntennaPod/AntennaPod#542\r\nCloses AntennaPod/AntennaPod#694\r\n\r\nEpisode actions are recorded and synced when user is logged into gpodder.\r\n\r\n* Create episode actions when episodes are downloaded, played, deleted and marked as read\r\n* Sync (download and upload) episode actions\r\n* MediaPlayerActivity deletes almost completely played episode on close\r\n* Improved parsing of datetime strings\r\n* Smart mark as played can be disabled or set in the preferences\r\n\r\n![Screenshot](https://cloud.githubusercontent.com/assets/6860662/6952930/3abeb508-d8c6-11e4-9eaf-aeb4c69f92c8.png)\r\n\r\n## For debugging\r\nYou can goto https://gpodder.net/share/ and click the world icon near User page. Recently played doesn't seem to update immediately... Maybe the web server is caching the request\r\n\r\nWhat I usually do:\r\n$ curl -i -u [Username]:[Password] -H \"Content-Type: application/json\" -H \"Accept: application/json\" -X GET https://gpodder.net/api/2/episodes/[Username].json?since=[Timestamp]\r\n\r\nTimestamp is seconds since 1.1.1970, set it to 0 or get the current time from http://www.epochconverter.com/ (For debugging, I take the current time and set the last three digits to zero).\r\nYou should see some nice JSON ;)\r\n\r\nYou should also see the syncing in logcat"},"comment":{"url":"https://api.github.com/repos/AntennaPod/AntennaPod/issues/comments/89853496","html_url":"https://github.com/AntennaPod/AntennaPod/pull/706#issuecomment-89853496","issue_url":"https://api.github.com/repos/AntennaPod/AntennaPod/issues/706","id":89853496,"user":{"login":"TomHennen","id":5216560,"avatar_url":"https://avatars.githubusercontent.com/u/5216560?v=3","gravatar_id":"","url":"https://api.github.com/users/TomHennen","html_url":"https://github.com/TomHennen","followers_url":"https://api.github.com/users/TomHennen/followers","following_url":"https://api.github.com/users/TomHennen/following{/other_user}","gists_url":"https://api.github.com/users/TomHennen/gists{/gist_id}","starred_url":"https://api.github.com/users/TomHennen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomHennen/subscriptions","organizations_url":"https://api.github.com/users/TomHennen/orgs","repos_url":"https://api.github.com/users/TomHennen/repos","events_url":"https://api.github.com/users/TomHennen/events{/privacy}","received_events_url":"https://api.github.com/users/TomHennen/received_events","type":"User","site_admin":false},"created_at":"2015-04-05T21:17:17Z","updated_at":"2015-04-05T21:17:17Z","body":"I think they should only be added to playback history if they've been played. Removing them from either list doesn't really count.\r\n\r\nI've been using playback history while testing this feature, but I never use it at any other time. Not sure if anyone else does.\r\n\r\nRegarding this particular PR. I thought that we had discussed not removing the episode from the queue until a user plays the next episode if SMAYED. The behavior that I'm currently seeing is the old behavior. Where the episode is removed as soon as it enters the SMAYED zone. I also don't see the undo feature that was discussed. Were you thinking of doing those things later?"}}