Skip to content

Commit aa944a4

Browse files
authored
Fix #46 (#47)
1 parent b434b14 commit aa944a4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

kobodl/commands/user.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import click
2+
import pyperclip
23
from tabulate import tabulate
34

45
from kobodl import actions, cli
@@ -71,7 +72,9 @@ def add(ctx, email, password):
7172
and paste it here. It will be very long!
7273
"""
7374
)
74-
captcha = input('Captcha response: ').strip()
75+
input('Press enter after copying the captcha code...')
76+
captcha = pyperclip.paste().strip()
77+
click.echo(f'Read captcha code from clipboard: {captcha}')
7578
actions.Login(user, password, captcha)
7679
Globals.Settings.UserList.users.append(user)
7780
Globals.Settings.Save()

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
setup(
1010
name='kobodl',
1111
author='Brandon Davis',
12-
version='0.7.0',
12+
version='0.7.1',
1313
author_email='[email protected]',
1414
url="https://github.com/subdavis/kobo-book-downloader",
1515
long_description=long_description,
@@ -23,6 +23,7 @@
2323
'dataclasses-json<0.6.0',
2424
'flask>=1.1.0',
2525
'pycryptodome<4',
26+
'pyperclip',
2627
'requests>=2.25',
2728
'tabulate<0.9.0',
2829
],

0 commit comments

Comments
 (0)