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:
parent
ae116812cc
commit
e1c51c0dfb
@ -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
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user