{"action":"created","issue":{"url":"https://api.github.com/repos/bromix/plugin.video.youtube/issues/159","labels_url":"https://api.github.com/repos/bromix/plugin.video.youtube/issues/159/labels{/name}","comments_url":"https://api.github.com/repos/bromix/plugin.video.youtube/issues/159/comments","events_url":"https://api.github.com/repos/bromix/plugin.video.youtube/issues/159/events","html_url":"https://github.com/bromix/plugin.video.youtube/issues/159","id":54613391,"number":159,"title":"Add video to 'Watch History'","user":{"login":"bromix","id":4136891,"avatar_url":"https://avatars.githubusercontent.com/u/4136891?v=3","gravatar_id":"","url":"https://api.github.com/users/bromix","html_url":"https://github.com/bromix","followers_url":"https://api.github.com/users/bromix/followers","following_url":"https://api.github.com/users/bromix/following{/other_user}","gists_url":"https://api.github.com/users/bromix/gists{/gist_id}","starred_url":"https://api.github.com/users/bromix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bromix/subscriptions","organizations_url":"https://api.github.com/users/bromix/orgs","repos_url":"https://api.github.com/users/bromix/repos","events_url":"https://api.github.com/users/bromix/events{/privacy}","received_events_url":"https://api.github.com/users/bromix/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bromix/plugin.video.youtube/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/bromix/plugin.video.youtube/milestones/22","labels_url":"https://api.github.com/repos/bromix/plugin.video.youtube/milestones/22/labels","id":937888,"number":22,"title":"v5.0.5","description":null,"creator":{"login":"bromix","id":4136891,"avatar_url":"https://avatars.githubusercontent.com/u/4136891?v=3","gravatar_id":"","url":"https://api.github.com/users/bromix","html_url":"https://github.com/bromix","followers_url":"https://api.github.com/users/bromix/followers","following_url":"https://api.github.com/users/bromix/following{/other_user}","gists_url":"https://api.github.com/users/bromix/gists{/gist_id}","starred_url":"https://api.github.com/users/bromix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bromix/subscriptions","organizations_url":"https://api.github.com/users/bromix/orgs","repos_url":"https://api.github.com/users/bromix/repos","events_url":"https://api.github.com/users/bromix/events{/privacy}","received_events_url":"https://api.github.com/users/bromix/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":1,"state":"open","created_at":"2015-01-16T06:58:06Z","updated_at":"2015-01-16T19:16:35Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-01-16T19:16:35Z","updated_at":"2015-01-16T19:21:49Z","closed_at":null,"body":"This will resolve #6 (only adding)\r\n\r\n```python\r\nGET https://www.youtube.com/user_watch?noflv=1&html5=1&video_id=[VID]&access_token=[TOKEN] HTTP/1.1\r\nHost: www.youtube.com\r\nConnection: keep-alive\r\nAccept: image/webp,*/*;q=0.8\r\nUser-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36\r\nDNT: 1\r\nReferer: https://www.youtube.com/tv\r\nAccept-Encoding: gzip, deflate, sdch\r\nAccept-Language: en-US,en;q=0.8,de;q=0.6\r\n\r\n```\r\n\r\nThis call will work ;)\r\nWe should add some of the missing parameters, so the call looks authentic :)"},"comment":{"url":"https://api.github.com/repos/bromix/plugin.video.youtube/issues/comments/70306959","html_url":"https://github.com/bromix/plugin.video.youtube/issues/159#issuecomment-70306959","issue_url":"https://api.github.com/repos/bromix/plugin.video.youtube/issues/159","id":70306959,"user":{"login":"bromix","id":4136891,"avatar_url":"https://avatars.githubusercontent.com/u/4136891?v=3","gravatar_id":"","url":"https://api.github.com/users/bromix","html_url":"https://github.com/bromix","followers_url":"https://api.github.com/users/bromix/followers","following_url":"https://api.github.com/users/bromix/following{/other_user}","gists_url":"https://api.github.com/users/bromix/gists{/gist_id}","starred_url":"https://api.github.com/users/bromix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bromix/subscriptions","organizations_url":"https://api.github.com/users/bromix/orgs","repos_url":"https://api.github.com/users/bromix/repos","events_url":"https://api.github.com/users/bromix/events{/privacy}","received_events_url":"https://api.github.com/users/bromix/received_events","type":"User","site_admin":false},"created_at":"2015-01-16T19:21:49Z","updated_at":"2015-01-16T19:21:49Z","body":"We also should rework the routine for removing a video from the 'Watch Later' list. This should be some kind of 'Post-Request' to first update the history and after that try to find and remove the video from the 'Watch Later' list.\r\nThis should be triggered only if the user is signed in - this we validate in the 'on_play' event."}}