1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 10:42:34 +01:00

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

This commit is contained in:
Mike Fährmann 2024-06-27 18:12:05 +02:00
commit 9329c30b41
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

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