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:
parent
aa2db7abeb
commit
6ae3a5cdb0
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user