From 26f86ca98741327da50c377a7ec4c09280a81949 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 9 Jul 2013 16:54:11 +0530 Subject: [PATCH] jsbrowser(): Fix typo causing some images to not be downloaded Fixes images missing in the Time recipe --- src/calibre/web/jsbrowser/browser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/web/jsbrowser/browser.py b/src/calibre/web/jsbrowser/browser.py index 104347bfb2..387b149bb9 100644 --- a/src/calibre/web/jsbrowser/browser.py +++ b/src/calibre/web/jsbrowser/browser.py @@ -571,7 +571,7 @@ class Browser(QObject, FormsMixin): ans[url] = raw urls.discard(url) - while urls and time.time() - start_time > timeout and self.page.ready_state not in {'complete', 'completed'}: + while urls and time.time() - start_time < timeout and self.page.ready_state not in {'complete', 'completed'}: get_resources() if urls: self.run_for_a_time(0.1)