[dt] use 'parse_datetime_iso()' for ISO formats

This commit is contained in:
Mike Fährmann
2025-10-19 19:31:31 +02:00
parent 5802107cdf
commit c38856bd3f
57 changed files with 102 additions and 165 deletions

View File

@@ -47,8 +47,8 @@ class VanillarockPostExtractor(VanillarockExtractor):
"count": len(imgs),
"title": text.unescape(name),
"path" : self.path.strip("/"),
"date" : self.parse_datetime(extr(
'<div class="date">', '</div>'), "%Y-%m-%d %H:%M"),
"date" : self.parse_datetime_iso(extr(
'<div class="date">', '</div>')),
"tags" : text.split_html(extr(
'<div class="cat-tag">', '</div>'))[::2],
}