Browse Source

It was not possible to enter the entire captcha response on MacOS. Fixes #21.

TnS-hun 3 years ago
parent
commit
3f365f8d3c
1 changed files with 5 additions and 0 deletions
  1. 5 0
      kobo-book-downloader/Kobo.py

+ 5 - 0
kobo-book-downloader/Kobo.py

@@ -11,6 +11,11 @@ import re
 import urllib
 import uuid
 
+# It was not possible to enter the entire captcha response on MacOS.
+# Importing readline changes the implementation of input() and solves the issue.
+# See https://stackoverflow.com/q/65735885 and https://stackoverflow.com/q/7357007.
+import readline
+
 class KoboException( Exception ):
 	pass