[patreon] Disable TLS 1.2 by default (#2249)

Disables TLS 1.2 on Patreon by default.
This commit is contained in:
Robert Pendell
2022-01-30 17:30:44 -05:00
committed by GitHub
parent 392cf079f7
commit 4c651f6252
2 changed files with 2 additions and 1 deletions

View File

@@ -64,7 +64,7 @@ class Extractor():
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.")

View File

@@ -26,6 +26,7 @@ class PatreonExtractor(Extractor):
archive_fmt = "{id}_{num}"
browser = "firefox"
_warning = True
disabletls12 = True
def items(self):