From 134883b674e588c851017c3731f7ae387d566d1f Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 5 Jan 2026 21:38:00 +0800 Subject: [PATCH] chore: sync local edits after rebase --- douyin/core/douyin_fudai.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/douyin/core/douyin_fudai.py b/douyin/core/douyin_fudai.py index 1f59609..86de2ed 100644 --- a/douyin/core/douyin_fudai.py +++ b/douyin/core/douyin_fudai.py @@ -2182,7 +2182,9 @@ class fudai_analyse: self.operation.delay(1.0) # 等待返回完成 except Exception as exc_inner: self._log_kv( - "粉丝团处理", "点击返回直播间失败", error=str(exc_inner) + "粉丝团处理", + "点击返回直播间失败", + error=str(exc_inner), ) except Exception: pass @@ -2210,7 +2212,9 @@ class fudai_analyse: ) self.operation.delay(1.0) # 等待返回完成 except Exception as exc_inner2: - self._log_kv("粉丝团处理", "点击返回直播间失败", error=str(exc_inner2)) + self._log_kv( + "粉丝团处理", "点击返回直播间失败", error=str(exc_inner2) + ) # 延迟后返回,让主循环继续处理 self.operation.delay(0.5) @@ -2501,7 +2505,9 @@ class fudai_analyse: and len(detail) >= 6 ): # detail 已校验为 tuple 且长度足够,可直接索引读取倒计时信息 - countdown_tuple = detail[5] # pylint: disable=unsubscriptable-object + countdown_tuple = detail[ + 5 + ] # pylint: disable=unsubscriptable-object if ( isinstance(countdown_tuple, (tuple, list)) and len(countdown_tuple) >= 2 @@ -3110,10 +3116,7 @@ class fudai_analyse: if isinstance(detail, tuple) and len(detail) >= 6: d_cast: Tuple[Any, ...] = cast(Tuple[Any, ...], detail) countdown_tuple = d_cast[5] - if ( - isinstance(countdown_tuple, (tuple, list)) - and len(countdown_tuple) >= 2 - ): + if isinstance(countdown_tuple, (tuple, list)) and len(countdown_tuple) >= 2: future_ts = float(countdown_tuple[1] or 0.0) if future_ts > 0: self._current_fudai_future_ts = future_ts