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

This commit is contained in:
Mike Fährmann
2025-09-05 19:27:25 +02:00
parent 89e1c785a6
commit 821f5c9a9e

View File

@@ -74,6 +74,8 @@ class VkExtractor(Extractor):
photo["id"] = photo["id"].rpartition("_")[2]
photo["date"] = text.parse_timestamp(text.extr(
photo["date"], 'data-date="', '"'))
photo["description"] = text.unescape(text.extr(
photo.get("desc", ""), ">", "<"))
photo.update(data)
text.nameext_from_url(url, photo)