[vk] add fallback for user ID extraction (#2535)

This commit is contained in:
Mike Fährmann
2022-05-03 13:42:45 +02:00
parent 61887c895b
commit 3e6aba05ab

View File

@@ -162,7 +162,8 @@ class VkPhotosExtractor(VkExtractor):
'<h1 class="page_name">', "<")).replace(" ", " "),
"info": text.unescape(text.remove_html(extr(
'<span class="current_text">', '</span'))),
"id" : extr('<a href="/albums', '"'),
"id" : (extr('<a href="/albums', '"') or
extr('data-from-id="', '"')),
}}