mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-09 15:46:06 +01:00
Fix nasty regression that was preventing passworded recipes from working correctly. Fixes #1226 (WSJ Fails to Download Full Text of Most Articles)
This commit is contained in:
parent
d13c39c87e
commit
2b1cebd3aa
1 changed files with 2 additions and 0 deletions
|
|
@ -619,6 +619,7 @@ def create_logger(self, feed_number, article_number):
|
|||
return logger, out
|
||||
|
||||
def _fetch_article(self, url, dir, logger, f, a, num_of_feeds):
|
||||
self.web2disk_options.browser = self.browser
|
||||
fetcher = RecursiveFetcher(self.web2disk_options, logger, self.image_map, self.css_map, (url, f, a, num_of_feeds))
|
||||
fetcher.base_dir = dir
|
||||
fetcher.current_dir = dir
|
||||
|
|
@ -974,6 +975,7 @@ def create_opf(self):
|
|||
def download(self):
|
||||
index = os.path.abspath(self.custom_index())
|
||||
url = 'file:'+index if iswindows else 'file://'+index
|
||||
self.web2disk_options.browser = self.browser
|
||||
fetcher = RecursiveFetcher(self.web2disk_options, self.logger)
|
||||
fetcher.base_dir = self.output_dir
|
||||
fetcher.current_dir = self.output_dir
|
||||
|
|
|
|||
Loading…
Reference in a new issue