Handle wordpress-style blog posts

main
Bob Mottram 2024-05-26 17:23:13 +01:00
parent 956c20fa2c
commit 4eb853f2af
1 changed files with 6 additions and 0 deletions

View File

@ -1665,6 +1665,12 @@ def contains_statuses(url: str) -> bool:
for status_str in statuses_list:
if status_str in url:
return True
# wordpress-style blog post
today = datetime.date.today()
if '/' + str(today.year) + '/' in url or \
'/' + str(today.year - 1) + '/' in url:
return True
return False