mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-25 12:12:34 +01:00
[tumblr] change default values for post types and inline media
This commit is contained in:
parent
5be95034ba
commit
28f9539551
@ -725,7 +725,7 @@ extractor.tumblr.inline
|
||||
-----------------------
|
||||
=========== =====
|
||||
Type ``bool``
|
||||
Default ``false``
|
||||
Default ``true``
|
||||
Description Search posts for inline images and videos.
|
||||
=========== =====
|
||||
|
||||
@ -746,7 +746,7 @@ extractor.tumblr.posts
|
||||
----------------------
|
||||
=========== =====
|
||||
Type ``string`` or ``list`` of ``strings``
|
||||
Default ``"photo"``
|
||||
Default ``"all"``
|
||||
Example ``"video,audio,link"`` or ``["video", "audio", "link"]``
|
||||
Description A (comma-separated) list of post types to extract images, etc. from.
|
||||
|
||||
|
@ -105,8 +105,8 @@
|
||||
{
|
||||
"avatar": false,
|
||||
"external": false,
|
||||
"inline": false,
|
||||
"posts": "photo",
|
||||
"inline": true,
|
||||
"posts": "all",
|
||||
"reblogs": true
|
||||
},
|
||||
"twitter":
|
||||
|
@ -53,7 +53,7 @@ class TumblrExtractor(Extractor):
|
||||
|
||||
self.types = self._setup_posttypes()
|
||||
self.avatar = self.config("avatar", False)
|
||||
self.inline = self.config("inline", False)
|
||||
self.inline = self.config("inline", True)
|
||||
self.reblogs = self.config("reblogs", True)
|
||||
self.external = self.config("external", False)
|
||||
|
||||
@ -131,7 +131,7 @@ class TumblrExtractor(Extractor):
|
||||
"""Return an iterable containing all relevant posts"""
|
||||
|
||||
def _setup_posttypes(self):
|
||||
types = self.config("posts", ("photo",))
|
||||
types = self.config("posts", "all")
|
||||
|
||||
if types == "all":
|
||||
return POST_TYPES
|
||||
|
Loading…
Reference in New Issue
Block a user