Skip to content

Commit

Permalink
fix item title in exported file
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name authored and alphatownsman committed Jan 5, 2025
1 parent a892af7 commit bda4833
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions journal/exporters/doufen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down Expand Up @@ -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)
+ " / "
Expand Down Expand Up @@ -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 [])
+ " / "
Expand Down Expand Up @@ -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 [])
+ " / "
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 = (
Expand Down

0 comments on commit bda4833

Please sign in to comment.