1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-25 04:02:32 +01:00

[vipergirls] add 'domain' option (#4166)

This commit is contained in:
Mike Fährmann 2024-03-18 16:53:02 +01:00
parent ae116812cc
commit e1c51c0dfb
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
2 changed files with 17 additions and 0 deletions

View File

@ -3954,6 +3954,18 @@ Description
``"raw"``, ``"full"``, ``"regular"``, ``"small"``, and ``"thumb"``.
extractor.vipergirls.domain
---------------------------
Type
``string``
Default
``"vipergirls.to"``
Description
Specifies the domain used by ``vipergirls`` extractors.
For example ``"viper.click"`` if the main domain is blocked or to bypass Cloudflare,
extractor.vipergirls.like
-------------------------
Type

View File

@ -26,6 +26,11 @@ class VipergirlsExtractor(Extractor):
cookies_domain = ".vipergirls.to"
cookies_names = ("vg_userid", "vg_password")
def _init(self):
domain = self.config("domain")
if domain:
self.root = text.ensure_http_scheme(domain)
def items(self):
self.login()
posts = self.posts()