Parcourir la source

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

TnS-hun il y a 3 ans
Parent
commit
3f365f8d3c
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  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