mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1105 (Wall St. Journal articles incomplete)
This commit is contained in:
parent
375d2470f5
commit
ce02f5c433
@ -614,6 +614,8 @@ class BasicNewsRecipe(object, LoggingInterface):
|
|||||||
except NotImplementedError:
|
except NotImplementedError:
|
||||||
feeds = self.parse_feeds()
|
feeds = self.parse_feeds()
|
||||||
|
|
||||||
|
#feeds = FeedCollection(feeds)
|
||||||
|
|
||||||
self.report_progress(0, _('Trying to download cover...'))
|
self.report_progress(0, _('Trying to download cover...'))
|
||||||
self.download_cover()
|
self.download_cover()
|
||||||
if self.test:
|
if self.test:
|
||||||
@ -675,6 +677,8 @@ class BasicNewsRecipe(object, LoggingInterface):
|
|||||||
except NoResultsPending:
|
except NoResultsPending:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
#feeds.restore_duplicates()
|
||||||
|
|
||||||
for f, feed in enumerate(feeds):
|
for f, feed in enumerate(feeds):
|
||||||
html = self.feed2index(feed)
|
html = self.feed2index(feed)
|
||||||
feed_dir = os.path.join(self.output_dir, 'feed_%d'%f)
|
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, '/'))
|
entries.append(relp.replace(os.sep, '/'))
|
||||||
last = sp
|
last = sp
|
||||||
|
|
||||||
|
if os.path.exists(last):
|
||||||
with open(last, 'rb') as fi:
|
with open(last, 'rb') as fi:
|
||||||
src = fi.read().decode('utf-8')
|
src = fi.read().decode('utf-8')
|
||||||
soup = BeautifulSoup(src)
|
soup = BeautifulSoup(src)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user