{"action":"opened","issue":{"url":"https://api.github.com/repos/feedjira/feedjira/issues/260","labels_url":"https://api.github.com/repos/feedjira/feedjira/issues/260/labels{/name}","comments_url":"https://api.github.com/repos/feedjira/feedjira/issues/260/comments","events_url":"https://api.github.com/repos/feedjira/feedjira/issues/260/events","html_url":"https://github.com/feedjira/feedjira/issues/260","id":55341150,"number":260,"title":"What to do with feeds with no images","user":{"login":"bdubaut","id":798319,"avatar_url":"https://avatars.githubusercontent.com/u/798319?v=3","gravatar_id":"","url":"https://api.github.com/users/bdubaut","html_url":"https://github.com/bdubaut","followers_url":"https://api.github.com/users/bdubaut/followers","following_url":"https://api.github.com/users/bdubaut/following{/other_user}","gists_url":"https://api.github.com/users/bdubaut/gists{/gist_id}","starred_url":"https://api.github.com/users/bdubaut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdubaut/subscriptions","organizations_url":"https://api.github.com/users/bdubaut/orgs","repos_url":"https://api.github.com/users/bdubaut/repos","events_url":"https://api.github.com/users/bdubaut/events{/privacy}","received_events_url":"https://api.github.com/users/bdubaut/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-23T22:26:42Z","updated_at":"2015-01-23T22:26:42Z","closed_at":null,"body":"Some RSS feeds generated by several blog engines are ignoring the image element (http://cyber.law.harvard.edu/rss/rss.html#ltimagegtSubelementOfLtchannelgt) which is an optional sub-element of channel. I encountered this as I am creating a news platform, and I need images from the article to make it pretty. \r\n\r\nMy solution would be something like this:\r\n```ruby\r\nif feed.image.nil?\r\n  array = parse_HTML_and_get_images(feed.description)\r\n  feed.image = best_image_of_the(array)\r\nend\r\n```\r\n\r\nWhat do you guys think?"}}