From 6fef536d6ec69d2c31fc88611e8c91d9d3a99af5 Mon Sep 17 00:00:00 2001 From: Cp0204 Date: Sun, 28 Jul 2024 03:13:05 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E4=BC=98=E5=8C=96=E5=B8=90?= =?UTF-8?q?=E5=8F=B7=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- quark_auto_save.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/quark_auto_save.py b/quark_auto_save.py index 12108f8..8cc12db 100644 --- a/quark_auto_save.py +++ b/quark_auto_save.py @@ -761,14 +761,18 @@ class Emby: def verify_account(account): # 验证账号 - account_info = account.init() print(f"▶️ 验证第{account.index}个账号") - if not account_info: - add_notify(f"👤 第{account.index}个账号登录失败,cookie无效❌") + if "__uid" not in account.cookie: + print(f"💡 不存在cookie必要参数,判断为仅签到") return False else: - print(f"👤 账号昵称: {account_info['nickname']}✅") - return True + account_info = account.init() + 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: