{"action":"created","issue":{"url":"https://api.github.com/repos/mzanetti/kodimote/issues/59","labels_url":"https://api.github.com/repos/mzanetti/kodimote/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/mzanetti/kodimote/issues/59/comments","events_url":"https://api.github.com/repos/mzanetti/kodimote/issues/59/events","html_url":"https://github.com/mzanetti/kodimote/issues/59","id":58019678,"number":59,"title":"Feature request - Implement 'Share this video' ","user":{"login":"pla1","id":426549,"avatar_url":"https://avatars.githubusercontent.com/u/426549?v=3","gravatar_id":"","url":"https://api.github.com/users/pla1","html_url":"https://github.com/pla1","followers_url":"https://api.github.com/users/pla1/followers","following_url":"https://api.github.com/users/pla1/following{/other_user}","gists_url":"https://api.github.com/users/pla1/gists{/gist_id}","starred_url":"https://api.github.com/users/pla1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pla1/subscriptions","organizations_url":"https://api.github.com/users/pla1/orgs","repos_url":"https://api.github.com/users/pla1/repos","events_url":"https://api.github.com/users/pla1/events{/privacy}","received_events_url":"https://api.github.com/users/pla1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-02-18T03:12:09Z","updated_at":"2015-05-30T02:55:36Z","closed_at":null,"body":"Please integrate the Ubuntu Touch 'Share this video' function with Kodimote for Ubuntu Touch. While on a YouTube page I would like to be able to press the YouTube video Share button and send the video ID to the Kodi media center plugin.video.youtube. There should be two options in the 'Share this video' menu. \r\n\r\n1. Play on media center.\r\n2. Queue on media center. \r\n\r\nOption 1 would play the video immediately regardless of what you have going on and option 2 would add the YouTube video ID to the playlist. You probably don't need it but below are a couple of examples using curl. \r\n\r\nAdd a video to a play list, start playing the the list, and add another video to the list: \r\n\r\n```\r\ncurl --user \"$user:$password\" --header \"Content-Type: application/json\" --data '{\"jsonrpc\":\"2.0\",\"method\":\"Playlist.Add\",\"params\":{\"playlistid\":1,\"item\": {\"file\":\"plugin://plugin.video.youtube/?action=play_video&videoid=tYThqD2pQbI\"}},\"id\":1}' \"http://$hostname:$port/jsonrpc\"\r\n\r\ncurl --user \"$user:$password\" --header \"Content-Type: application/json\" --data '{\"jsonrpc\":\"2.0\",\"method\":\"Player.Open\",\"params\":{\"item\": {\"playlistid\":1}}}' \"http://$hostname:$port/jsonrpc\"\r\n\r\ncurl --user \"$user:$password\" --header \"Content-Type: application/json\" --data '{\"jsonrpc\":\"2.0\",\"method\":\"Playlist.Add\",\"params\":{\"playlistid\":1,\"item\": {\"file\":\"plugin://plugin.video.youtube/?action=play_video&videoid=6yvIkbStKSw\"}},\"id\":1}' \"http://$hostname:$port/jsonrpc\"\r\n\r\n```\r\n\r\nImmediate playback of a video: \r\n\r\n```\r\ncurl --user \"$user:$password\" --header \"Content-Type: application/json\" --data '{\"jsonrpc\":\"2.0\",\"method\":\"Player.Open\",\"params\":{\"item\": {\"file\":\"plugin://plugin.video.youtube/?action=play_video&videoid=Cj6ho1-G6tw\"}},\"id\":1}' \"http://$hostname:$port/jsonrpc\"\r\n```\r\n\r\n![Image of Share This Video menu](http://i.imgur.com/oAHupDX.png)\r\n"},"comment":{"url":"https://api.github.com/repos/mzanetti/kodimote/issues/comments/106979083","html_url":"https://github.com/mzanetti/kodimote/issues/59#issuecomment-106979083","issue_url":"https://api.github.com/repos/mzanetti/kodimote/issues/59","id":106979083,"user":{"login":"mzanetti","id":102573,"avatar_url":"https://avatars.githubusercontent.com/u/102573?v=3","gravatar_id":"","url":"https://api.github.com/users/mzanetti","html_url":"https://github.com/mzanetti","followers_url":"https://api.github.com/users/mzanetti/followers","following_url":"https://api.github.com/users/mzanetti/following{/other_user}","gists_url":"https://api.github.com/users/mzanetti/gists{/gist_id}","starred_url":"https://api.github.com/users/mzanetti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzanetti/subscriptions","organizations_url":"https://api.github.com/users/mzanetti/orgs","repos_url":"https://api.github.com/users/mzanetti/repos","events_url":"https://api.github.com/users/mzanetti/events{/privacy}","received_events_url":"https://api.github.com/users/mzanetti/received_events","type":"User","site_admin":false},"created_at":"2015-05-30T02:55:36Z","updated_at":"2015-05-30T02:55:36Z","body":"For Ubuntu this is implemented in pull request #75 "}}