Skip to content

Commit

Permalink
fix export with tv episode
Browse files Browse the repository at this point in the history
  • Loading branch information
mein Name committed Nov 19, 2024
1 parent 4b67003 commit 7961cbe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions journal/exporters/doufen.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,8 @@ def export_marks_task(user):
movie = mark.item
title = movie.title
if movie.__class__ == TVEpisode:
summary = (
f"S{movie.season.season_number:02d}E{movie.episode_number:02d}"
)
season_number = movie.season.season_number if movie.season else 0
summary = f"S{season_number:02d}E{movie.episode_number:02d}"
else:
summary = (
str(movie.year or "")
Expand Down

0 comments on commit 7961cbe

Please sign in to comment.