From df7a7565980ac93ae5080f2b4e300bd2d489c062 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 1 Oct 2012 09:00:45 +0530 Subject: [PATCH] Fix #1059364 (Washington Post recipe needs an update) --- recipes/wash_post.recipe | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/recipes/wash_post.recipe b/recipes/wash_post.recipe index 61a469b47d..eff27b1f2a 100644 --- a/recipes/wash_post.recipe +++ b/recipes/wash_post.recipe @@ -64,8 +64,10 @@ class TheWashingtonPost(BasicNewsRecipe): def get_article_url(self, article): link = BasicNewsRecipe.get_article_url(self,article) + if article.id.startswith('http'): + link = article.id if not 'washingtonpost.com' in link: - self.log('Skipping adds:', link) + self.log('Skipping ads:', link) return None for it in ['_video.html','_gallery.html','_links.html']: if it in link: