[skeb] add 'thumbnails' option (#2047) (#2051)

pull/2056/head
Alice 3 years ago committed by GitHub
parent 010d65dcec
commit 612850438e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1905,6 +1905,16 @@ Description
Download videos.
extractor.skeb.thumbnails
-------------------------
Type
``bool``
Default
``false``
Description
Download thumbnails.
extractor.smugmug.videos
------------------------
Type

@ -21,6 +21,7 @@ class SkebExtractor(Extractor):
def __init__(self, match):
Extractor.__init__(self, match)
self.user_name = match.group(1)
self.thumbnails = self.config("thumbnails", False)
def items(self):
for post_num in self.posts():
@ -94,7 +95,7 @@ class SkebExtractor(Extractor):
return resp, post
def _get_urls_from_post(self, resp, post):
if "og_image_url" in resp:
if self.thumbnails and "og_image_url" in resp:
post["content_category"] = "thumb"
post["file_id"] = "thumb"
post["file_url"] = resp["og_image_url"]

Loading…
Cancel
Save