Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add PlexGuid.is_special property
Browse files Browse the repository at this point in the history
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
@@ -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:

0 comments on commit f286e31

Please sign in to comment.