From 5b968a0a7cb5845cc1c2e0c615941e7060d914b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Thu, 3 Oct 2024 20:09:22 +0200 Subject: [PATCH] [boosty] extend image URLs with 'signedQuery' (#2387) --- docs/configuration.rst | 48 ++++++++++++++++++++++++++++++++++ gallery_dl/extractor/boosty.py | 2 ++ 2 files changed, 50 insertions(+) diff --git a/docs/configuration.rst b/docs/configuration.rst index 1a5e11f5..4b1a7066 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -1508,6 +1508,54 @@ Description Download videos. +extractor.boosty.allowed +------------------------ +Type + ``bool`` +Default + ``true`` +Description + Request only available posts. + + +extractor.boosty.bought +----------------------- +Type + ``bool`` +Default + ``false`` +Description + Request only purchased posts for ``feed`` results. + + +extractor.boosty.metadata +------------------------- +Type + ``bool`` +Default + ``false`` +Description + Provide detailed ``user`` metadata. + + +extractor.boosty.videos +----------------------- +Type + * ``bool`` + * ``list`` of ``strings`` +Default + ``true`` +Example + ``["full_hd", "high", "medium"]`` +Description + Download videos. + + | If this is a ``list``, it selects which format to try to download. + | Possibly available formats are + ``"quad_hd"``, ``"ultra_hd"``, ``"full_hd"``, + ``"high"``, ``"medium"``, ``"low"`` + + extractor.bunkr.tlds -------------------- Type diff --git a/gallery_dl/extractor/boosty.py b/gallery_dl/extractor/boosty.py index b600e0e0..6ecfb922 100644 --- a/gallery_dl/extractor/boosty.py +++ b/gallery_dl/extractor/boosty.py @@ -81,6 +81,8 @@ class BoostyExtractor(Extractor): content.append(c[0]) elif type == "image": + if post["signedQuery"]: + block["url"] += post["signedQuery"] files.append(block) elif type == "ok_video":