mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-01 12:32:25 +08:00
no log: remove http adapter from subf2m (no longer needed)
This commit is contained in:
parent
ad13f79d19
commit
b07786411d
1 changed files with 0 additions and 20 deletions
|
@ -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"})
|
||||
|
|
Loading…
Reference in a new issue