Skip to content

Commit

Permalink
Add PlexGuid.is_special property
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Dec 27, 2023
1 parent 309d3ed commit de5695b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions plextraktsync/plex/PlexGuid.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ def is_episode(self):

return False

@property
def is_special(self):
if self.media_type != "episodes":
raise ValueError("is_special is not valid for non-episodes")

return self.pm.season_number == 0

@cached_property
def show_id(self):
if not self.is_episode:
Expand Down

0 comments on commit de5695b

Please sign in to comment.