From 01f3189aa7dd106aae201ca5fe6e7a904f308e35 Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Thu, 22 Jun 2017 08:51:35 -0600 Subject: [PATCH] adapter_fimfictionnet -- missed the "st" ordinal case when parsing dates (#194) --- fanficfare/adapters/adapter_fimfictionnet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fanficfare/adapters/adapter_fimfictionnet.py b/fanficfare/adapters/adapter_fimfictionnet.py index a12f41a7..bd3e22cc 100644 --- a/fanficfare/adapters/adapter_fimfictionnet.py +++ b/fanficfare/adapters/adapter_fimfictionnet.py @@ -325,7 +325,7 @@ class FimFictionNetSiteAdapter(BaseSiteAdapter): ## Sometimes, for reasons that are unclear, data-time is not present. Parse the date out of the title instead. else: span = containingtag.find('span', title=True) - dateRegex = re.search('([a-zA-Z ]+)([0-9]+)(th of|nd of|rd of)([a-zA-Z ]+[0-9]+)', span['title']) + dateRegex = re.search('([a-zA-Z ]+)([0-9]+)(st of|th of|nd of|rd of)([a-zA-Z ]+[0-9]+)', span['title']) dateString = dateRegex.group(2) + dateRegex.group(4) return makeDate(dateString, "%d %B %Y")