From 148a6aaf78b6c890c2f602525af4540685258b00 Mon Sep 17 00:00:00 2001 From: Meekdai Date: Fri, 19 Jul 2024 15:40:24 +0800 Subject: [PATCH] Update Gmeek.py --- Gmeek.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Gmeek.py b/Gmeek.py index 8fb807e..0f9179a 100644 --- a/Gmeek.py +++ b/Gmeek.py @@ -484,10 +484,12 @@ for i in blog.blogBase["postListJson"]: del blog.blogBase["postListJson"][i]["createdAt"] del blog.blogBase["postListJson"][i]["script"] del blog.blogBase["postListJson"][i]["style"] - del blog.blogBase["postListJson"][i]["head"] del blog.blogBase["postListJson"][i]["top"] del blog.blogBase["postListJson"][i]["ogImage"] + if 'head' in blog.blogBase["postListJson"][i]: + del blog.blogBase["postListJson"][i]["head"] + if 'commentNum' in blog.blogBase["postListJson"][i]: commentNumSum=commentNumSum+blog.blogBase["postListJson"][i]["commentNum"] del blog.blogBase["postListJson"][i]["commentNum"]