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(