{"action":"created","issue":{"url":"https://api.github.com/repos/alphagov/static/issues/780","repository_url":"https://api.github.com/repos/alphagov/static","labels_url":"https://api.github.com/repos/alphagov/static/issues/780/labels{/name}","comments_url":"https://api.github.com/repos/alphagov/static/issues/780/comments","events_url":"https://api.github.com/repos/alphagov/static/issues/780/events","html_url":"https://github.com/alphagov/static/pull/780","id":151685104,"number":780,"title":"Check for a data attribute to turn off the video player","user":{"login":"gemmaleigh","id":417754,"avatar_url":"https://avatars.githubusercontent.com/u/417754?v=3","gravatar_id":"","url":"https://api.github.com/users/gemmaleigh","html_url":"https://github.com/gemmaleigh","followers_url":"https://api.github.com/users/gemmaleigh/followers","following_url":"https://api.github.com/users/gemmaleigh/following{/other_user}","gists_url":"https://api.github.com/users/gemmaleigh/gists{/gist_id}","starred_url":"https://api.github.com/users/gemmaleigh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gemmaleigh/subscriptions","organizations_url":"https://api.github.com/users/gemmaleigh/orgs","repos_url":"https://api.github.com/users/gemmaleigh/repos","events_url":"https://api.github.com/users/gemmaleigh/events{/privacy}","received_events_url":"https://api.github.com/users/gemmaleigh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-28T16:21:30Z","updated_at":"2016-04-29T11:43:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/alphagov/static/pulls/780","html_url":"https://github.com/alphagov/static/pull/780","diff_url":"https://github.com/alphagov/static/pull/780.diff","patch_url":"https://github.com/alphagov/static/pull/780.patch"},"body":"When using the [govspeak component](http://govuk-component-guide.herokuapp.com/components/govspeak), all links to YouTube are converted to an [embedded video player](http://govuk-component-guide.herokuapp.com/components/govspeak/fixtures/with_youtube_embed/preview).\r\n\r\nThis PR allows links to YouTube which aren't converted to an embedded player.\r\n\r\nCheck for a data attribute `data-youtube-player` if its value is `off`\r\nthen don’t convert that link into an embedded player.\r\n\r\nFor example:\r\n```\r\n<a href=\"http://www.youtube.com/youtubevidid\" data-youtube-player=\"off\">\r\nWatch this related video\r\n</a>\r\n```\r\n\r\nHere's a demo: \r\nhttp://codepen.io/gemmaleigh/pen/qZJmKB"},"comment":{"url":"https://api.github.com/repos/alphagov/static/issues/comments/215690744","html_url":"https://github.com/alphagov/static/pull/780#issuecomment-215690744","issue_url":"https://api.github.com/repos/alphagov/static/issues/780","id":215690744,"user":{"login":"AndrewVos","id":363618,"avatar_url":"https://avatars.githubusercontent.com/u/363618?v=3","gravatar_id":"","url":"https://api.github.com/users/AndrewVos","html_url":"https://github.com/AndrewVos","followers_url":"https://api.github.com/users/AndrewVos/followers","following_url":"https://api.github.com/users/AndrewVos/following{/other_user}","gists_url":"https://api.github.com/users/AndrewVos/gists{/gist_id}","starred_url":"https://api.github.com/users/AndrewVos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndrewVos/subscriptions","organizations_url":"https://api.github.com/users/AndrewVos/orgs","repos_url":"https://api.github.com/users/AndrewVos/repos","events_url":"https://api.github.com/users/AndrewVos/events{/privacy}","received_events_url":"https://api.github.com/users/AndrewVos/received_events","type":"User","site_admin":false},"created_at":"2016-04-29T11:43:40Z","updated_at":"2016-04-29T11:43:40Z","body":"lgtm"}}