mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
d5a37ea0f5
commit
8b2ed777ad
@ -62,11 +62,8 @@ class AdvancedUserRecipe1299694372(BasicNewsRecipe):
|
|||||||
soup = self.index_to_soup(feedurl)
|
soup = self.index_to_soup(feedurl)
|
||||||
for item in soup.findAll('a', attrs={'class': 'article_title'}):
|
for item in soup.findAll('a', attrs={'class': 'article_title'}):
|
||||||
articles.append({
|
articles.append({
|
||||||
'url': item['href'],
|
'url': 'https://www.instapaper.com' + item['href'],
|
||||||
'title': item['title']
|
'title': item['title']
|
||||||
})
|
})
|
||||||
totalfeeds.append((feedtitle, articles))
|
totalfeeds.append((feedtitle, articles))
|
||||||
return totalfeeds
|
return totalfeeds
|
||||||
|
|
||||||
def print_version(self, url):
|
|
||||||
return 'https://www.instapaper.com' + url
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user