mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-06 17:02:43 +01:00
adapter_literotica: Fix date parsing. See #1208
This commit is contained in:
parent
61c063ed72
commit
e628b10247
1 changed files with 2 additions and 0 deletions
|
|
@ -224,6 +224,8 @@ class LiteroticaSiteAdapter(BaseSiteAdapter):
|
||||||
## multichap also have "date_approve", but they have
|
## multichap also have "date_approve", but they have
|
||||||
## several and they're more than just the story chapters.
|
## several and they're more than just the story chapters.
|
||||||
date = re.search(r'"date_approve":"(\d\d/\d\d/\d\d\d\d)"',data)
|
date = re.search(r'"date_approve":"(\d\d/\d\d/\d\d\d\d)"',data)
|
||||||
|
if not date:
|
||||||
|
date = re.search(r'date_approve:"(\d\d/\d\d/\d\d\d\d)"',data)
|
||||||
if date:
|
if date:
|
||||||
dateval = makeDate(date.group(1), self.dateformat)
|
dateval = makeDate(date.group(1), self.dateformat)
|
||||||
self.story.setMetadata('datePublished', dateval)
|
self.story.setMetadata('datePublished', dateval)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue