diff --git a/plugins/account/players.py b/plugins/account/players.py index 7a967f1ff..0eaf32509 100644 --- a/plugins/account/players.py +++ b/plugins/account/players.py @@ -221,10 +221,10 @@ async def refresh_cookies(self, update: "Update", _: "ContextTypes.DEFAULT_TYPE" cookies.remove_v2() for cookie in client.cookies.jar: if cookie.name == "cookie_token" and cookie.expires is not None: - expiry_date = time.strftime('%Y-%m-%d %H:%M:%S', time.gmtime(cookie.expires)) + expiry_date = time.strftime("%Y-%m-%d %H:%M:%S", time.gmtime(cookie.expires)) logger.info("下次 cookie_token 过期时间为 %s", expiry_date) if cookie.name == "ltoken" and cookie.expires is not None: - expiry_date = time.strftime('%Y-%m-%d %H:%M:%S', time.gmtime(cookie.expires)) + expiry_date = time.strftime("%Y-%m-%d %H:%M:%S", time.gmtime(cookie.expires)) logger.info("下次 ltoken 过期时间为 %s", expiry_date) except Exception as exc: # pylint: disable=W0703 logger.error("刷新 cookie_token 失败 [%s]", (str(exc))) @@ -395,4 +395,3 @@ async def delete(self, update: "Update", _: "ContextTypes.DEFAULT_TYPE") -> None else: if callback_query.message: await callback_query.message.delete() -