Fix #1105 (Wall St. Journal articles incomplete)

This commit is contained in:
Kovid Goyal 2008-10-02 01:32:54 -07:00
parent 375d2470f5
commit ce02f5c433

View File

@ -614,6 +614,8 @@ class BasicNewsRecipe(object, LoggingInterface):
except NotImplementedError:
feeds = self.parse_feeds()
#feeds = FeedCollection(feeds)
self.report_progress(0, _('Trying to download cover...'))
self.download_cover()
if self.test:
@ -675,6 +677,8 @@ class BasicNewsRecipe(object, LoggingInterface):
except NoResultsPending:
break
#feeds.restore_duplicates()
for f, feed in enumerate(feeds):
html = self.feed2index(feed)
feed_dir = os.path.join(self.output_dir, 'feed_%d'%f)
@ -745,6 +749,7 @@ class BasicNewsRecipe(object, LoggingInterface):
entries.append(relp.replace(os.sep, '/'))
last = sp
if os.path.exists(last):
with open(last, 'rb') as fi:
src = fi.read().decode('utf-8')
soup = BeautifulSoup(src)