{"action":"created","issue":{"url":"https://api.github.com/repos/alleyinteractive/apple-news/issues/44","labels_url":"https://api.github.com/repos/alleyinteractive/apple-news/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/alleyinteractive/apple-news/issues/44/comments","events_url":"https://api.github.com/repos/alleyinteractive/apple-news/issues/44/events","html_url":"https://github.com/alleyinteractive/apple-news/issues/44","id":121719682,"number":44,"title":"Issues with Video component","user":{"login":"AlexAscherson","id":12135010,"avatar_url":"https://avatars.githubusercontent.com/u/12135010?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexAscherson","html_url":"https://github.com/AlexAscherson","followers_url":"https://api.github.com/users/AlexAscherson/followers","following_url":"https://api.github.com/users/AlexAscherson/following{/other_user}","gists_url":"https://api.github.com/users/AlexAscherson/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexAscherson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexAscherson/subscriptions","organizations_url":"https://api.github.com/users/AlexAscherson/orgs","repos_url":"https://api.github.com/users/AlexAscherson/repos","events_url":"https://api.github.com/users/AlexAscherson/events{/privacy}","received_events_url":"https://api.github.com/users/AlexAscherson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-11T14:39:23Z","updated_at":"2015-12-11T16:26:04Z","closed_at":null,"body":"Hi there,\r\n\r\nThanks so much for this great plugin.  I have been have using it to generate Apple News Format, but one issue I have is that for some reason the embeddable video component doesn't seem to work for me. \r\n\r\nHere is the code being used to generate the video markup that goes into the content:\r\n\r\n```php\r\n $html = '<p><iframe class=\"youtube\" src=\"https://www.youtube.com/embed/'. $a['id'] .'\" frameborder=\"0\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></p>';\r\n```\r\n\r\nIs there anything there that would stop it from being parsed as a embeddable video component?\r\n\r\nStepping through the code, in a post with no content except an embedded video inside a p tag, it will check a node with the tagname p, failing to match it as a p element and then testing it as a container.\r\n\r\nIt then checks a node with tagname 'iframe', failing to match it on the iframe check, with a nodevalue of \"\".\r\n\r\nNot sure what im doing wrong here, have checked it without the ```html\r\n <p>\r\n``` wrapper and i just get an empty article.  \r\n\r\nUnlike the gallery element the video component doesnt state what exactly it expects to find (e.g. A div with class gallery).\r\n\r\nWhat exactly is the iframe/embed component trying to match on/ any ideas why this isnt working?  Let me know if you need any other info, would be very grateful for any advice you can give me on this.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/alleyinteractive/apple-news/issues/comments/163980952","html_url":"https://github.com/alleyinteractive/apple-news/issues/44#issuecomment-163980952","issue_url":"https://api.github.com/repos/alleyinteractive/apple-news/issues/44","id":163980952,"user":{"login":"bcampeau","id":966849,"avatar_url":"https://avatars.githubusercontent.com/u/966849?v=3","gravatar_id":"","url":"https://api.github.com/users/bcampeau","html_url":"https://github.com/bcampeau","followers_url":"https://api.github.com/users/bcampeau/followers","following_url":"https://api.github.com/users/bcampeau/following{/other_user}","gists_url":"https://api.github.com/users/bcampeau/gists{/gist_id}","starred_url":"https://api.github.com/users/bcampeau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcampeau/subscriptions","organizations_url":"https://api.github.com/users/bcampeau/orgs","repos_url":"https://api.github.com/users/bcampeau/repos","events_url":"https://api.github.com/users/bcampeau/events{/privacy}","received_events_url":"https://api.github.com/users/bcampeau/received_events","type":"User","site_admin":false},"created_at":"2015-12-11T16:26:04Z","updated_at":"2015-12-11T16:26:04Z","body":"The plugin is expecting the URL by itself in a paragraph like:\r\n\r\n`<p>https://www.youtube.com/watch?v=KK9bwTlAvgo</p>`\r\n\r\nIt works only with YouTube and Vimeo currently.\r\n\r\nIf you think we should handle more cases, pull requests are welcome. Thanks!"}}