diff --git a/tieba_archiver/cli.py b/tieba_archiver/cli.py index afe1752..41d514c 100644 --- a/tieba_archiver/cli.py +++ b/tieba_archiver/cli.py @@ -598,8 +598,9 @@ def cmd_fetch_emoji(args) -> int: conn.close() print(f"[ok] 表情 {stats['total']} 个:下载 {stats['ok']},已有 {stats['skip']},失败 {len(stats['failed'])}") if stats["failed"]: - print(" 失败:", " ".join(stats["failed"][:20])) - return 0 if not stats["failed"] else 1 + print(" 失败(CDN 上没有,渲染时回退文字):", " ".join(stats["failed"][:20])) + # 部分表情缺失不影响构建,只有全都失败才算错 + return 0 if stats["ok"] or stats["skip"] else 1 def cmd_build_zim(args) -> int: