Skip to content

Commit

Permalink
Replaced weeks= by days=
Browse files Browse the repository at this point in the history
Whilst still not very accurate, it is closer to the truth than having all months be 28 days and all years be 364 days...
  • Loading branch information
ducalex committed Aug 17, 2024
1 parent a150c65 commit 634def4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nova3/engines/eztv.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ def __init__(self, url):
r"(\d+)h\s+(\d+)m": lambda m: now - timedelta(hours=int(m[1]), minutes=int(m[2])),
r"(\d+)d\s+(\d+)h": lambda m: now - timedelta(days=int(m[1]), hours=int(m[2])),
r"(\d+)\s+weeks?": lambda m: now - timedelta(weeks=int(m[1])),
r"(\d+)\s+mo": lambda m: now - timedelta(weeks=int(m[1]) * 4),
r"(\d+)\s+years?": lambda m: now - timedelta(weeks=int(m[1]) * 52),
r"(\d+)\s+mo": lambda m: now - timedelta(days=int(m[1]) * 30),
r"(\d+)\s+years?": lambda m: now - timedelta(days=int(m[1]) * 365),
}
self.in_table_row = False
self.current_item = {}
Expand Down

0 comments on commit 634def4

Please sign in to comment.