Skip to content

Commit

Permalink
[pixiv] make retrieving ugoira metadata non-fatal (#2562)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed May 8, 2022
1 parent aa2db7a commit 6ae3a5c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion gallery_dl/extractor/pixiv.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,14 @@ def transform_tags(work):
if work["type"] == "ugoira":
if not self.load_ugoira:
continue
ugoira = self.api.ugoira_metadata(work["id"])

try:
ugoira = self.api.ugoira_metadata(work["id"])
except exception.StopExtraction as exc:
self.log.warning(
"Unable to retrieve Ugoira metatdata (%s - %s)",
work.get("id"), exc.message)
continue

url = ugoira["zip_urls"]["medium"].replace(
"_ugoira600x600", "_ugoira1920x1080")
Expand Down

0 comments on commit 6ae3a5c

Please sign in to comment.