mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
added today as an option for date filters
This commit is contained in:
parent
6a282708f8
commit
f30f338dc6
2 changed files with 5 additions and 2 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
1.15.1-develop38
|
||||
1.15.1-develop39
|
||||
|
|
|
@ -1645,7 +1645,10 @@ class CollectionBuilder:
|
|||
logger.error(error)
|
||||
return valid_list
|
||||
elif attribute in plex.date_attributes and modifier in [".before", ".after"]:
|
||||
return util.validate_date(data, final, return_as="%Y-%m-%d")
|
||||
if data == "today":
|
||||
return datetime.strftime(datetime.now(), "%Y-%m-%d")
|
||||
else:
|
||||
return util.validate_date(data, final, return_as="%Y-%m-%d")
|
||||
elif attribute in plex.year_attributes + ["tmdb_year"] and modifier in ["", ".not"]:
|
||||
final_years = []
|
||||
values = util.get_list(data)
|
||||
|
|
Loading…
Reference in a new issue