INNER CODE UNIT · Python
__post_init__
Casvt/Plex-scripts · library_management/recent_episode_maintainer.py:215
def __post_init__(self) -> None:
self.filters: List[Callable[[TMedia], bool]] = []
self.check_exclude = None
if self.exclude:
self.check_exclude = exclude_media(self.exclude)
if self.recent_episodes:
self.filters.append(prep_recent_eps())
if self.last_watch:
op = self.last_watch[0]
value = self.last_watch[1:]
if op not in OPERATORS:
raise ValueError("Invalid operator for last watch")
if not value.isdigit():
raise ValueError("Invalid number for last watch")