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 = [] feeds = []
for key, val in self.old_profile.parse_feeds().items(): for key, val in self.old_profile.parse_feeds().items():
feeds.append((key, val)) feeds.append((key, val))
return self.old_profile.parse_feeds() return feeds
class CustomIndexRecipe(BasicNewsRecipe): class CustomIndexRecipe(BasicNewsRecipe):

View File

@ -33,8 +33,7 @@ class TheAtlantic(BasicNewsRecipe):
def parse_index(self): def parse_index(self):
articles = [] articles = []
src = self.browser.open(self.INDEX).read() soup = self.index_to_soup(self.INDEX)
soup = BeautifulSoup(src, convertEntities=BeautifulSoup.HTML_ENTITIES)
issue = soup.find('span', attrs={'class':'issue'}) issue = soup.find('span', attrs={'class':'issue'})
if issue: if issue: