add:comments
This commit is contained in:
parent
c54f5a2a18
commit
a040da8242
2
main.py
2
main.py
@ -84,6 +84,7 @@ class BiliWebCrawler:
|
||||
return resp
|
||||
except Exception as e:
|
||||
print(f"请求失败: {str(e)}, 第{i + 1}次重试...")
|
||||
send_notification(f"请求失败: {str(e)}, 第{i + 1}次重试...")
|
||||
sleep(uniform(1, 3))
|
||||
return None
|
||||
|
||||
@ -378,6 +379,7 @@ if __name__ == "__main__":
|
||||
targets = load_targets()
|
||||
if not targets:
|
||||
print("未找到有效的BV号,程序退出")
|
||||
send_notification("未找到有效的BV号,程序退出")
|
||||
exit()
|
||||
send_info_log(f"开始批量处理 {len(targets)} 个视频")
|
||||
for bvid in targets:
|
||||
|
Loading…
x
Reference in New Issue
Block a user