diff options
| author | 2019-09-08 19:44:00 -0400 | |
|---|---|---|
| committer | 2019-09-08 19:44:00 -0400 | |
| commit | c09a9f00dd83017d486cd77650347bc2a397ad55 (patch) | |
| tree | b4609415ab7fcb51b1acf74344ed3a414dc0e322 /gallery_dl/extractor/booru.py | |
| parent | 01b2d06c57d52b2c6f241b1beb0e377ee3a8b2a6 (diff) | |
New upstream version 1.10.4upstream/1.10.4
Diffstat (limited to 'gallery_dl/extractor/booru.py')
| -rw-r--r-- | gallery_dl/extractor/booru.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gallery_dl/extractor/booru.py b/gallery_dl/extractor/booru.py index 54a8878..ac45e0b 100644 --- a/gallery_dl/extractor/booru.py +++ b/gallery_dl/extractor/booru.py @@ -27,6 +27,7 @@ class BooruExtractor(SharedConfigMixin, Extractor): page_start = 1 page_limit = None sort = False + ugoira = True def __init__(self, match): super().__init__(match) @@ -51,7 +52,11 @@ class BooruExtractor(SharedConfigMixin, Extractor): for image in images: try: - url = image["file_url"] + if "pixiv_ugoira_frame_data" in image and \ + "large_file_url" in image and not self.ugoira: + url = image["large_file_url"] + else: + url = image["file_url"] except KeyError: continue if url.startswith("/"): |
