summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVitiko <[email protected]>2023-03-03 15:55:47 -0400
committerVitiko <[email protected]>2023-03-03 15:55:47 -0400
commitb07786411dbd2b9daa625bc91a7afebb7e801dd1 (patch)
treef536db553710e15bcf5461e945550ff4273c5ff6
parentad13f79d193d479b0c674a05330b97befc8445c7 (diff)
downloadbazarr-b07786411dbd2b9daa625bc91a7afebb7e801dd1.tar.gz
bazarr-b07786411dbd2b9daa625bc91a7afebb7e801dd1.zip
no log: remove http adapter from subf2m (no longer needed)v1.2.1-beta.0
-rw-r--r--libs/subliminal_patch/providers/subf2m.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/libs/subliminal_patch/providers/subf2m.py b/libs/subliminal_patch/providers/subf2m.py
index 5d0ebcffd..8a9807fff 100644
--- a/libs/subliminal_patch/providers/subf2m.py
+++ b/libs/subliminal_patch/providers/subf2m.py
@@ -5,15 +5,11 @@ import functools
import logging
import re
import time
-import ssl
import urllib.parse
-from urllib3 import poolmanager
-
from guessit import guessit
from requests import Session
-from requests.adapters import HTTPAdapter
from bs4 import BeautifulSoup as bso
from guessit import guessit
from requests import Session
@@ -120,20 +116,6 @@ _LANGUAGE_MAP = {
}
-class _Adapter(HTTPAdapter):
- def init_poolmanager(self, connections, maxsize, block=False):
- ctx = ssl.create_default_context()
- ctx.set_ciphers("DEFAULT@SECLEVEL=0")
- ctx.check_hostname = False
- self.poolmanager = poolmanager.PoolManager(
- num_pools=connections,
- maxsize=maxsize,
- block=block,
- ssl_version=ssl.PROTOCOL_TLS,
- ssl_context=ctx,
- )
-
-
class Subf2mProvider(Provider):
provider_name = "subf2m"
@@ -162,8 +144,6 @@ class Subf2mProvider(Provider):
def initialize(self):
self._session = Session()
- self._session.mount("https://", _Adapter())
-
self._session.verify = self._verify_ssl
self._session.headers.update({"user-agent": "Bazarr"})