Skip to content

Commit

Permalink
[danbooru] change default for 'ugoira' to 'false'
Browse files Browse the repository at this point in the history
Downloading the pre-rendered versions should be a better default
than .zip files with individual frames.
  • Loading branch information
mikf committed May 20, 2020
1 parent 3201fe3 commit e19f665
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ extractor.danbooru.ugoira
-------------------------
=========== =====
Type ``bool``
Default ``true``
Default ``false``
Description Controls the download target for Ugoira posts.

* ``true``: Original ZIP archives
Expand Down
2 changes: 1 addition & 1 deletion docs/gallery-dl.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
{
"username": null,
"password": null,
"ugoira": true
"ugoira": false
},
"deviantart":
{
Expand Down
6 changes: 3 additions & 3 deletions gallery_dl/extractor/danbooru.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class DanbooruExtractor(SharedConfigMixin, Extractor):
def __init__(self, match):
super().__init__(match)
self.root = "https://{}.donmai.us".format(match.group(1))
self.ugoira = self.config("ugoira", True)
self.ugoira = self.config("ugoira", False)
self.params = {}

username, api_key = self._get_auth_info()
Expand Down Expand Up @@ -156,8 +156,8 @@ class DanbooruPostExtractor(DanbooruExtractor):
"content": "5e255713cbf0a8e0801dc423563c34d896bb9229",
}),
("https://danbooru.donmai.us/posts/3613024", {
"pattern": r"https?://.+\.webm$",
"options": (("ugoira", False),)
"pattern": r"https?://.+\.zip$",
"options": (("ugoira", True),)
})
)

Expand Down

0 comments on commit e19f665

Please sign in to comment.