From a3dd3c09eeda54e85d0177ffa1b632b3d56bcb56 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Tue, 22 Feb 2022 14:43:02 -0500 Subject: [PATCH] [80] fix tmdb_year filter --- VERSION | 2 +- modules/builder.py | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/VERSION b/VERSION index b868e3d0..bf42d770 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.15.1-develop79 +1.15.1-develop80 diff --git a/modules/builder.py b/modules/builder.py index 4a8c815d..60d586c6 100644 --- a/modules/builder.py +++ b/modules/builder.py @@ -1906,10 +1906,8 @@ class CollectionBuilder: attr = None if filter_attr == "tmdb_vote_count": attr = item.vote_count - elif filter_attr == "tmdb_year" and is_movie: - attr = item.year - elif filter_attr == "tmdb_year" and not is_movie and item.first_air_date: - attr = item.first_air_date.year + elif filter_attr == "tmdb_year": + attr = item.release_date.year if is_movie else item.first_air_date.year if util.is_number_filter(attr, modifier, filter_data): return False elif filter_attr == "tmdb_genre":