Skip to content

Commit

Permalink
[patreon] Disable TLS 1.2 by default (#2249)
Browse files Browse the repository at this point in the history
Disables TLS 1.2 on Patreon by default.
  • Loading branch information
shinji257 committed Jan 30, 2022
1 parent 392cf07 commit 4c651f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gallery_dl/extractor/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def __init__(self, match):
self._retries = float("inf")

self._additional_adapter_options = 0
if self.config("disabletls12"):
if self.config("disabletls12") or self.disabletls12:
self._additional_adapter_options |= ssl.OP_NO_TLSv1_2
self.log.info("TLS 1.2 disabled.")

Expand Down
1 change: 1 addition & 0 deletions gallery_dl/extractor/patreon.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class PatreonExtractor(Extractor):
archive_fmt = "{id}_{num}"
browser = "firefox"
_warning = True
disabletls12 = True

def items(self):

Expand Down

0 comments on commit 4c651f6

Please sign in to comment.