Various bug fixes/minor improvements to feeds2disk

This commit is contained in:
Kovid Goyal 2008-03-19 21:29:21 +00:00
parent a8a72eef14
commit 066bfb116b
2 changed files with 2 additions and 3 deletions

View File

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

View File

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