From 8b2ed777adda8319fa52aac015a5053807f484b9 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 11 Apr 2016 05:17:36 +0530 Subject: [PATCH] Use correct urls in the instapaper recipe rather than relying on print_version(), which breaks the article downloaded from link --- recipes/instapaper.recipe | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/recipes/instapaper.recipe b/recipes/instapaper.recipe index df4ba9e49d..04596f46a7 100644 --- a/recipes/instapaper.recipe +++ b/recipes/instapaper.recipe @@ -62,11 +62,8 @@ class AdvancedUserRecipe1299694372(BasicNewsRecipe): soup = self.index_to_soup(feedurl) for item in soup.findAll('a', attrs={'class': 'article_title'}): articles.append({ - 'url': item['href'], + 'url': 'https://www.instapaper.com' + item['href'], 'title': item['title'] }) totalfeeds.append((feedtitle, articles)) return totalfeeds - - def print_version(self, url): - return 'https://www.instapaper.com' + url