diff options
Diffstat (limited to 'libs/subliminal_patch')
-rw-r--r-- | libs/subliminal_patch/providers/subf2m.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/subliminal_patch/providers/subf2m.py b/libs/subliminal_patch/providers/subf2m.py index 5ab637c6f..2ee78899b 100644 --- a/libs/subliminal_patch/providers/subf2m.py +++ b/libs/subliminal_patch/providers/subf2m.py @@ -135,8 +135,14 @@ class Subf2mProvider(Provider): video_types = (Episode, Movie) subtitle_class = Subf2mSubtitle + def __init__(self, verify_ssl=True): + super().__init__() + self._verify_ssl = verify_ssl + def initialize(self): self._session = Session() + self._session.verify = self._verify_ssl + self._session.headers.update({"user-agent": "Bazarr"}) def terminate(self): |