From bda48338936cf868fddbf35bc8288454a3c9815b Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 5 Jan 2025 00:43:31 -0500 Subject: [PATCH] fix item title in exported file --- journal/exporters/doufen.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/journal/exporters/doufen.py b/journal/exporters/doufen.py index 5ffab00a..64fb3ba9 100644 --- a/journal/exporters/doufen.py +++ b/journal/exporters/doufen.py @@ -78,7 +78,7 @@ def run(self): for mm in marks: mark = mm.mark movie = mark.item - title = movie.title + title = movie.display_title if movie.__class__ == TVEpisode: season_number = movie.season.season_number if movie.season else 0 summary = f"S{season_number:02d}E{movie.episode_number:02d}" @@ -128,7 +128,7 @@ def run(self): for mm in marks: mark = mm.mark album = mark.item - title = album.title + title = album.display_title summary = ( ",".join(album.artist) + " / " @@ -168,7 +168,7 @@ def run(self): for mm in marks: mark = mm.mark book = mark.item - title = book.title + title = book.display_title summary = ( ",".join(book.author or []) + " / " @@ -210,7 +210,7 @@ def run(self): for mm in marks: mark = mm.mark game = mark.item - title = game.title + title = game.display_title summary = ( ",".join(game.genre or []) + " / " @@ -256,7 +256,7 @@ def run(self): for mm in marks: mark = mm.mark podcast = mark.item - title = podcast.title + title = podcast.display_title summary = ",".join(podcast.host or []) tags = ",".join(mark.tags) world_rating = (podcast.rating / 2) if podcast.rating else None @@ -307,7 +307,7 @@ def run(self): ws.append(review_heading) for review in reviews: title = review.title - target = "《" + review.item.title + "》" + target = "《" + review.item.display_title + "》" url = review.absolute_url timestamp = review.created_time.strftime("%Y-%m-%d %H:%M:%S") my_rating = (