From be31064500ba0a1399b4d39e724987e5721cf526 Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Mon, 17 Jul 2017 21:03:10 +0200 Subject: [PATCH] Oops again. --- readit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readit.py b/readit.py index 5413a92..f102026 100755 --- a/readit.py +++ b/readit.py @@ -48,7 +48,7 @@ def pageHandler(driver, id, page): if not loadPage("https://app.myreadit.com/reader/%s#%i" % (id, int(page)), driver): if "/ %i" % (int(page) - 1) in driver.page_source or "/ %i" % (int(page) - 2) in driver.page_source: return False - while not loadPage("https://app.myreadit.com/reader/%s#i" % (id, int(page)), driver): + while not loadPage("https://app.myreadit.com/reader/%s#%i" % (id, int(page)), driver): time.sleep(5) img = driver.find_element_by_id("page1").get_attribute("src")