1
0
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:
Mike Fährmann 2018-12-26 14:35:59 +01:00
parent 5be95034ba
commit 28f9539551
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
3 changed files with 6 additions and 6 deletions

View File

@ -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.

View File

@ -105,8 +105,8 @@
{
"avatar": false,
"external": false,
"inline": false,
"posts": "photo",
"inline": true,
"posts": "all",
"reblogs": true
},
"twitter":

View File

@ -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