diff --git a/gallery_dl/extractor/vk.py b/gallery_dl/extractor/vk.py index 23f6ea2e..ab2153f1 100644 --- a/gallery_dl/extractor/vk.py +++ b/gallery_dl/extractor/vk.py @@ -40,12 +40,12 @@ class VkExtractor(Extractor): continue try: - photo["url"], photo["width"], photo["height"] = photo[size] + _, photo["width"], photo["height"] = photo[size] except ValueError: # photo without width/height entries (#2535) - photo["url"] = photo[size + "src"] photo["width"] = photo["height"] = 0 + photo["url"] = photo[size + "src"] photo["id"] = photo["id"].rpartition("_")[2] photo.update(data)