mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Various bug fixes/minor improvements to feeds2disk
This commit is contained in:
parent
a8a72eef14
commit
066bfb116b
@ -765,7 +765,7 @@ class Profile2Recipe(BasicNewsRecipe):
|
||||
feeds = []
|
||||
for key, val in self.old_profile.parse_feeds().items():
|
||||
feeds.append((key, val))
|
||||
return self.old_profile.parse_feeds()
|
||||
return feeds
|
||||
|
||||
class CustomIndexRecipe(BasicNewsRecipe):
|
||||
|
||||
|
@ -33,8 +33,7 @@ class TheAtlantic(BasicNewsRecipe):
|
||||
def parse_index(self):
|
||||
articles = []
|
||||
|
||||
src = self.browser.open(self.INDEX).read()
|
||||
soup = BeautifulSoup(src, convertEntities=BeautifulSoup.HTML_ENTITIES)
|
||||
soup = self.index_to_soup(self.INDEX)
|
||||
|
||||
issue = soup.find('span', attrs={'class':'issue'})
|
||||
if issue:
|
||||
|
Loading…
x
Reference in New Issue
Block a user