Skip to content

Commit

Permalink
Shorten is_episode body
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Jan 7, 2024
1 parent 4370f1c commit 713d6a2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions plextraktsync/plex/PlexGuid.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,8 @@ def is_episode(self):
Return true of the id is in form of <show>/<season>/<episode>
"""
parts = self.id.split("/")
if len(parts) == 3 and all(x.isnumeric() for x in parts):
return True

return False
return len(parts) == 3 and all(x.isnumeric() for x in parts)

@cached_property
def show_id(self):
Expand Down

0 comments on commit 713d6a2

Please sign in to comment.