mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
fix date error
This commit is contained in:
parent
371cb567e7
commit
f7d1992fc2
1 changed files with 6 additions and 3 deletions
|
@ -1468,8 +1468,11 @@ class CollectionBuilder:
|
|||
if (modifier == "" and (current_data is None or current_data < threshold_date)) \
|
||||
or (modifier == ".not" and current_data and current_data >= threshold_date):
|
||||
return False
|
||||
elif (modifier == ".before" and (current_data is None or current_data >= filter_data)) \
|
||||
or (modifier == ".after" and (current_data is None or current_data <= filter_data)):
|
||||
elif modifier in [".before", ".after"]:
|
||||
if current_data is None:
|
||||
return False
|
||||
filter_date = datetime.strptime(str(filter_data), "%m/%d/%Y")
|
||||
if (modifier == ".before" and current_data >= filter_data) or (modifier == ".after" and current_data <= filter_data):
|
||||
return False
|
||||
elif filter_attr in ["release", "added", "last_played"] and modifier == ".regex":
|
||||
jailbreak = False
|
||||
|
|
Loading…
Reference in a new issue