From e5f5e96de2002a06427d01638956f59e48d5ee2d Mon Sep 17 00:00:00 2001 From: malinkang Date: Tue, 6 Feb 2024 14:16:25 +0800 Subject: [PATCH] fix bug --- scripts/douban.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/douban.py b/scripts/douban.py index f002351109..1a960fb85e 100644 --- a/scripts/douban.py +++ b/scripts/douban.py @@ -109,7 +109,11 @@ def fetch_subjects(user, type_, status): print(f"更新{movie.get('电影名')}") print(notion_movive.get("日期") != movie.get("日期")) + print(f"notion 日期{notion_movive.get('日期')}") + print(f"movie 日期{movie.get('日期')}") print(notion_movive.get("短评") != movie.get("短评")) + print(f"notion 短评{notion_movive.get('短评')}") + print(f"movie 短评{movie.get('短评')}") print(notion_movive.get("状态") != movie.get("状态")) print(notion_movive.get("评分") != movie.get("评分")) properties = utils.get_properties(movie, movie_properties_type_dict) @@ -132,7 +136,8 @@ def fetch_subjects(user, type_, status): for x in subject.get("genres") ] if subject.get("actors"): - movie["演员"] = [x.get("name") for x in subject.get("actors")] + print("") + movie["演员"] = [x.get("name") for x in subject.get("actors") if x.get("name")] if subject.get("directors"): movie["导演"] = [ notion_helper.get_relation_id(