From 2f496111da9aa82477dc828a62aa2cd83e206bba Mon Sep 17 00:00:00 2001 From: ihmily <961532186@qq.com> Date: Tue, 11 Jun 2024 14:35:08 +0800 Subject: [PATCH] fix: update tiktok parse --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 7f8df75..6aee172 100644 --- a/main.py +++ b/main.py @@ -1078,7 +1078,7 @@ def start_record(url_data: tuple, count_variable: int = -1): else: anchor_name = port_info.get("anchor_name", '') - if anchor_name == '': + if not port_info.get("anchor_name", ''): print(f'序号{count_variable} 网址内容获取失败,进行重试中...获取失败的地址是:{url_data}') warning_count += 1 else: @@ -1943,4 +1943,4 @@ while True: first_run = False - time.sleep(3) + time.sleep(3) \ No newline at end of file