Update Instapaper

This commit is contained in:
Kovid Goyal 2013-09-01 08:31:39 +05:30
parent fb8ab757f5
commit 601f6e87db

View File

@ -34,7 +34,7 @@ class AdvancedUserRecipe1299694372(BasicNewsRecipe):
] ]
# Adds the title tag to the body of the recipe. Use this if your articles miss headings. # Adds the title tag to the body of the recipe. Use this if your articles miss headings.
add_title_tag = False; add_title_tag = False
def get_browser(self): def get_browser(self):
br = BasicNewsRecipe.get_browser(self) br = BasicNewsRecipe.get_browser(self)
@ -55,7 +55,7 @@ class AdvancedUserRecipe1299694372(BasicNewsRecipe):
self.report_progress(0, 'Fetching feed'+' %s...'%(feedtitle if feedtitle else feedurl)) self.report_progress(0, 'Fetching feed'+' %s...'%(feedtitle if feedtitle else feedurl))
articles = [] articles = []
soup = self.index_to_soup(feedurl) soup = self.index_to_soup(feedurl)
for item in soup.findAll('div', attrs={'class':'cornerControls'}): for item in soup.findAll('div', attrs={'class':'title_row'}):
#description = self.tag_to_string(item.div) #description = self.tag_to_string(item.div)
atag = item.a atag = item.a
if atag and atag.has_key('href'): if atag and atag.has_key('href'):