merge #5783: [subscribestar] fix 'date' parsing in updated posts

pull/5802/head
Mike Fährmann 3 months ago
commit 9329c30b41
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -127,6 +127,8 @@ class SubscribestarExtractor(Extractor):
} }
def _parse_datetime(self, dt): def _parse_datetime(self, dt):
if dt.startswith("Updated on "):
dt = dt[11:]
date = text.parse_datetime(dt, "%b %d, %Y %I:%M %p") date = text.parse_datetime(dt, "%b %d, %Y %I:%M %p")
if date is dt: if date is dt:
date = text.parse_datetime(dt, "%B %d, %Y %I:%M %p") date = text.parse_datetime(dt, "%B %d, %Y %I:%M %p")

Loading…
Cancel
Save