Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
malinkang committed Feb 6, 2024
1 parent 84953b3 commit e5f5e96
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/douban.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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(
Expand Down

0 comments on commit e5f5e96

Please sign in to comment.