mirror of
https://github.com/Cp0204/quark-auto-save.git
synced 2026-01-12 07:10:44 +08:00
✨ 优化帐号验证
This commit is contained in:
parent
7376565c31
commit
6fef536d6e
@ -761,14 +761,18 @@ class Emby:
|
|||||||
|
|
||||||
def verify_account(account):
|
def verify_account(account):
|
||||||
# 验证账号
|
# 验证账号
|
||||||
account_info = account.init()
|
|
||||||
print(f"▶️ 验证第{account.index}个账号")
|
print(f"▶️ 验证第{account.index}个账号")
|
||||||
if not account_info:
|
if "__uid" not in account.cookie:
|
||||||
add_notify(f"👤 第{account.index}个账号登录失败,cookie无效❌")
|
print(f"💡 不存在cookie必要参数,判断为仅签到")
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
print(f"👤 账号昵称: {account_info['nickname']}✅")
|
account_info = account.init()
|
||||||
return True
|
if not account_info:
|
||||||
|
add_notify(f"👤 第{account.index}个账号登录失败,cookie无效❌")
|
||||||
|
return False
|
||||||
|
else:
|
||||||
|
print(f"👤 账号昵称: {account_info['nickname']}✅")
|
||||||
|
return True
|
||||||
|
|
||||||
|
|
||||||
def format_bytes(size_bytes: int) -> str:
|
def format_bytes(size_bytes: int) -> str:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user