[80] fix tmdb_year filter

pull/737/head
meisnate12 3 years ago
parent 883120acab
commit a3dd3c09ee

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

@ -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":

Loading…
Cancel
Save