Skip to content
This repository was archived by the owner on Jan 28, 2026. It is now read-only.

Commit 5158047

Browse files
committed
fix: adjust login logic
1 parent d1873ed commit 5158047

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

bilitool/controller/login_controller.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,12 @@ def __init__(self):
1515
self.check_bili_login = CheckBiliLogin()
1616

1717
def login_bilibili(self, export):
18-
input(
19-
"Please maximize the window to ensure the QR code is fully displayed, press Enter to continue: "
20-
)
18+
print("Please maximize the window to ensure the QR code is fully displayed, press Enter to continue: ", flush=True)
2119
login_url, auth_code = self.login_bili.get_tv_qrcode_url_and_auth_code()
2220
qr = qrcode.QRCode()
2321
qr.add_data(login_url)
2422
qr.print_ascii()
25-
print("Or copy this link to your phone Bilibili:", login_url)
23+
print("Or copy this link to your phone Bilibili:", login_url, flush=True)
2624
self.login_bili.verify_login(auth_code, export)
2725

2826
def logout_bilibili(self):

0 commit comments

Comments
 (0)