Skip to content

Commit

Permalink
[vk] get URLs from *_src entries (#2535)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Jun 27, 2022
1 parent 54525d2 commit 367a491
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gallery_dl/extractor/vk.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ def items(self):
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)

Expand Down

0 comments on commit 367a491

Please sign in to comment.