Skip to content

Commit

Permalink
Skip year=None from PlexLibraryItem
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Jan 17, 2024
1 parent 2278d28 commit 0531155
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plextraktsync/plex/PlexLibraryItem.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ def title(self):
if self.type == "episode":
value = f"{self.item.grandparentTitle}/{self.item.seasonEpisode}/{value}"

value = f"{value} ({self.item.year})"
if self.item.year:
value = f"{value} ({self.item.year})"

return value

Expand Down

0 comments on commit 0531155

Please sign in to comment.