1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 02:32:33 +01:00

[pixiv] make retrieving ugoira metadata non-fatal (#2562)

This commit is contained in:
Mike Fährmann 2022-05-08 20:05:38 +02:00
parent aa2db7abeb
commit 6ae3a5cdb0
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -73,7 +73,14 @@ class PixivExtractor(Extractor):
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")