From 4699aaaf562bf6ff2369ed3ef578c2c24cc5d9e6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 27 Jul 2015 09:47:18 +0530 Subject: [PATCH] Update Wired Magazine --- recipes/wired.recipe | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/wired.recipe b/recipes/wired.recipe index cde45d8de3..ca4bd4f9fb 100644 --- a/recipes/wired.recipe +++ b/recipes/wired.recipe @@ -59,8 +59,8 @@ class WiredDailyNews(BasicNewsRecipe): for a in soup.find('main').findAll('a', href=True): url = a['href'] if url.startswith('http://www.wired.com/') and url.endswith('/'): - title = self.tag_to_string(a.find('h2')) - dateloc = a.find('time') + title = self.tag_to_string(a.parent.find('h2')) + dateloc = a.parent.find('time') date = self.tag_to_string(dateloc) if title.lower() != 'read more' and title and url not in seen: seen.add(url)