Use correct urls in the instapaper recipe rather than relying on print_version(), which breaks the article downloaded from link

This commit is contained in:
Kovid Goyal 2016-04-11 05:17:36 +05:30
parent d5a37ea0f5
commit 8b2ed777ad

View File

@ -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