[vk] parse 'date' metadata (#8029)

This commit is contained in:
Mike Fährmann
2025-09-05 18:04:34 +02:00
parent b9fd9103d4
commit 89e1c785a6
2 changed files with 7 additions and 1 deletions

View File

@@ -72,6 +72,8 @@ class VkExtractor(Extractor):
photo["width"] = photo["height"] = 0
photo["id"] = photo["id"].rpartition("_")[2]
photo["date"] = text.parse_timestamp(text.extr(
photo["date"], 'data-date="', '"'))
photo.update(data)
text.nameext_from_url(url, photo)