فهرست منبع

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

TnS-hun 3 سال پیش
والد
کامیت
3f365f8d3c
1فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  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