mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-26 10:47:14 +01:00
adapter_fimfictionnet -- missed the "st" ordinal case when parsing dates (#194)
This commit is contained in:
parent
24c0304aa5
commit
01f3189aa7
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue