[80] fix tmdb_year filter

This commit is contained in:
meisnate12 2022-02-22 14:43:02 -05:00
parent 883120acab
commit a3dd3c09ee
2 changed files with 3 additions and 5 deletions

View file

@ -1 +1 @@
1.15.1-develop79 1.15.1-develop80

View file

@ -1906,10 +1906,8 @@ class CollectionBuilder:
attr = None attr = None
if filter_attr == "tmdb_vote_count": if filter_attr == "tmdb_vote_count":
attr = item.vote_count attr = item.vote_count
elif filter_attr == "tmdb_year" and is_movie: elif filter_attr == "tmdb_year":
attr = item.year attr = item.release_date.year if is_movie else item.first_air_date.year
elif filter_attr == "tmdb_year" and not is_movie and item.first_air_date:
attr = item.first_air_date.year
if util.is_number_filter(attr, modifier, filter_data): if util.is_number_filter(attr, modifier, filter_data):
return False return False
elif filter_attr == "tmdb_genre": elif filter_attr == "tmdb_genre":