Skip to content

Commit

Permalink
[vipergirls] add 'domain' option (#4166)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Mar 18, 2024
1 parent ae11681 commit e1c51c0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions gallery_dl/extractor/vipergirls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e1c51c0

Please sign in to comment.