merge #5783: [subscribestar] fix 'date' parsing in updated posts
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user