fixed method error

pull/351/head
meisnate12 3 years ago
parent 18897852d3
commit dab8600e84

@ -1458,7 +1458,7 @@ class CollectionBuilder:
elif modifier in [".before", ".after"]: elif modifier in [".before", ".after"]:
if current_data is None: if current_data is None:
return False return False
filter_date = util.validate_date(filter_data) filter_date = util.validate_date(filter_data, filter_final)
if (modifier == ".before" and current_data >= filter_date) or (modifier == ".after" and current_data <= filter_date): if (modifier == ".before" and current_data >= filter_date) or (modifier == ".after" and current_data <= filter_date):
return False return False
elif filter_attr in ["release", "added", "last_played"] and modifier == ".regex": elif filter_attr in ["release", "added", "last_played"] and modifier == ".regex":

@ -253,7 +253,7 @@ class TMDb:
count = 0 count = 0
for date_attr in discover_dates: for date_attr in discover_dates:
if date_attr in attrs: if date_attr in attrs:
attrs[date_attr] = util.validate_date(attrs[date_attr], return_as="%Y-%m-%d") attrs[date_attr] = util.validate_date(attrs[date_attr], f"tmdb_discover attribute {date_attr}", return_as="%Y-%m-%d")
self.Discover.discover_movies(attrs) if is_movie else self.Discover.discover_tv_shows(attrs) self.Discover.discover_movies(attrs) if is_movie else self.Discover.discover_tv_shows(attrs)
total_pages = int(self.TMDb.total_pages) total_pages = int(self.TMDb.total_pages)
total_results = int(self.TMDb.total_results) total_results = int(self.TMDb.total_results)

Loading…
Cancel
Save