diff --git a/docs/configuration.rst b/docs/configuration.rst index 177c651f..a5047dc5 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -2142,6 +2142,16 @@ Description Download videos. +extractor.skeb.article +---------------------- +Type + ``bool`` +Default + ``false`` +Description + Download article images. + + extractor.skeb.sent-requests ---------------------------- Type diff --git a/docs/gallery-dl.conf b/docs/gallery-dl.conf index 29eb3b87..f40faacd 100644 --- a/docs/gallery-dl.conf +++ b/docs/gallery-dl.conf @@ -253,6 +253,12 @@ "username": null, "password": null }, + "skeb": + { + "article": false, + "sent-requests": false, + "thumbnails": false + }, "smugmug": { "videos": true diff --git a/gallery_dl/extractor/skeb.py b/gallery_dl/extractor/skeb.py index 6dfc9075..7b4ce665 100644 --- a/gallery_dl/extractor/skeb.py +++ b/gallery_dl/extractor/skeb.py @@ -23,6 +23,7 @@ class SkebExtractor(Extractor): Extractor.__init__(self, match) self.user_name = match.group(1) self.thumbnails = self.config("thumbnails", False) + self.article = self.config("article", False) def items(self): for user_name, post_num in self.posts(): @@ -105,6 +106,12 @@ class SkebExtractor(Extractor): post["file_url"] = resp["og_image_url"] yield post + if self.article and "article_image_url" in resp: + post["content_category"] = "article" + post["file_id"] = "article" + post["file_url"] = resp["article_image_url"] + yield post + for preview in resp["previews"]: post["content_category"] = "preview" post["file_id"] = preview["id"]