diff --git a/modules/builder.py b/modules/builder.py index cd438ed8..2d31a910 100644 --- a/modules/builder.py +++ b/modules/builder.py @@ -95,6 +95,7 @@ all_filters = [ "release", "release.not", "release.before", "release.after", "release.regex", "history", "added", "added.not", "added.before", "added.after", "added.regex", "last_played", "last_played.not", "last_played.before", "last_played.after", "last_played.regex", + "first_episode_aired", "first_episode_aired.not", "first_episode_aired.before", "first_episode_aired.after", "first_episode_aired.regex", "last_episode_aired", "last_episode_aired.not", "last_episode_aired.before", "last_episode_aired.after", "last_episode_aired.regex", "title", "title.not", "title.begins", "title.ends", "title.regex", "plays.gt", "plays.gte", "plays.lt", "plays.lte", @@ -122,7 +123,7 @@ movie_only_filters = [ "resolution", "resolution.not", "writer", "writer.not" ] -show_only_filters = ["last_episode_aired", "network"] +show_only_filters = ["first_episode_aired", "last_episode_aired", "network"] smart_invalid = ["collection_order"] smart_url_invalid = ["filters", "run_again", "sync_mode", "show_filtered", "show_missing", "save_missing", "smart_label"] + radarr_details + sonarr_details custom_sort_builders = [ @@ -1388,7 +1389,7 @@ class CollectionBuilder: for filter_method, filter_data in self.filters: filter_attr, modifier, filter_final = self._split(filter_method) filter_actual = filter_translation[filter_attr] if filter_attr in filter_translation else filter_attr - if filter_attr in ["tmdb_vote_count", "original_language", "last_episode_aired"]: + if filter_attr in ["tmdb_vote_count", "original_language", "first_episode_aired", "last_episode_aired"]: if current.ratingKey not in self.library.movie_rating_key_map and current.ratingKey not in self.library.show_rating_key_map: logger.warning(f"Filter Error: No {'TMDb' if self.library.is_movie else 'TVDb'} ID found for {current.title}") return False diff --git a/modules/plex.py b/modules/plex.py index b5926b68..a876b210 100644 --- a/modules/plex.py +++ b/modules/plex.py @@ -142,7 +142,7 @@ boolean_attributes = [ "unplayed_episodes", "episode_unplayed", "episode_duplicate", "episode_progress", "episode_unmatched", ] tmdb_attributes = ["actor", "director", "producer", "writer"] -date_attributes = ["added", "episode_added", "release", "episode_air_date", "last_played", "episode_last_played", "last_episode_aired"] +date_attributes = ["added", "episode_added", "release", "episode_air_date", "last_played", "episode_last_played", "first_episode_aired", "last_episode_aired"] search_display = {"added": "Date Added", "release": "Release Date", "hdr": "HDR", "progress": "In Progress", "episode_progress": "Episode In Progress"} sorts = { None: None,