From 7e5d88d3f1685d815f712628ec2e8ad751fe681c Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 9 Jan 2026 20:28:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E6=A0=87=E9=A2=98?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E9=80=BB=E8=BE=91=EF=BC=8C=E5=90=88=E5=B9=B6?= =?UTF-8?q?=E7=A9=BA=E6=A0=87=E9=A2=98=E5=88=A4=E6=96=AD=E6=9D=A1=E4=BB=B6?= =?UTF-8?q?=E4=BB=A5=E6=8F=90=E9=AB=98=E4=BB=A3=E7=A0=81=E5=8F=AF=E8=AF=BB?= =?UTF-8?q?=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- douyin/reservation/douyin_reservation_verify.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/douyin/reservation/douyin_reservation_verify.py b/douyin/reservation/douyin_reservation_verify.py index 244986a..2773e85 100644 --- a/douyin/reservation/douyin_reservation_verify.py +++ b/douyin/reservation/douyin_reservation_verify.py @@ -402,14 +402,11 @@ def validate_back_to_reservation( # 强不匹配:仅返回失败(不做任何回退动作) # 当标题为空时也视为失败,因为无法确认是否在正确直播间 - if ( - (not current_title) # 标题为空,读取失败 - or ( - current_title - and (expected_title not in current_title) - and (current_title not in expected_title) - and ratio < 0.45 - ) + if (not current_title) or ( # 标题为空,读取失败 + current_title + and (expected_title not in current_title) + and (current_title not in expected_title) + and ratio < 0.45 ): try: analyser._log_kv(