diff options
author | Anthony Arnaud <[email protected]> | 2022-01-06 07:56:24 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2022-01-06 07:56:24 -0500 |
commit | 1a03d9fd12e601a072aeb3d30e3e3693373d841d (patch) | |
tree | e91ed934adf6d63d25efc512eebb211535b53e63 /libs/subliminal/providers/addic7ed.py | |
parent | f55492a25cf617604ff158d1fc516cf7298a4adc (diff) | |
download | bazarr-1a03d9fd12e601a072aeb3d30e3e3693373d841d.tar.gz bazarr-1a03d9fd12e601a072aeb3d30e3e3693373d841d.zip |
Added cookies option for addic7ed to avoid anti-captcha provider requirementv1.0.3-beta.6
Diffstat (limited to 'libs/subliminal/providers/addic7ed.py')
-rw-r--r-- | libs/subliminal/providers/addic7ed.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/subliminal/providers/addic7ed.py b/libs/subliminal/providers/addic7ed.py index 7c9ab1501..52c7ec03a 100644 --- a/libs/subliminal/providers/addic7ed.py +++ b/libs/subliminal/providers/addic7ed.py @@ -98,12 +98,14 @@ class Addic7edProvider(Provider): server_url = 'http://www.addic7ed.com/' subtitle_class = Addic7edSubtitle - def __init__(self, username=None, password=None): + def __init__(self, username=None, password=None, cookies=None, user_agent=None): if any((username, password)) and not all((username, password)): raise ConfigurationError('Username and password must be specified') self.username = username self.password = password + self.cookies = cookies + self.user_agent = user_agent self.logged_in = False self.session = None |