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 23, 2023
1 parent 66a84f3 commit f286e31
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions plextraktsync/plex/PlexGuid.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ def is_episode(self):

return False

@property
def is_special(self):
# applies to episodes only
if self.media_type != "episodes":
return False

return self.pm.episode_number == 0

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

0 comments on commit f286e31

Please sign in to comment.