summaryrefslogtreecommitdiffhomepage
path: root/libs/subliminal/providers/addic7ed.py
diff options
context:
space:
mode:
authorAnthony Arnaud <[email protected]>2022-01-06 07:56:24 -0500
committerGitHub <[email protected]>2022-01-06 07:56:24 -0500
commit1a03d9fd12e601a072aeb3d30e3e3693373d841d (patch)
treee91ed934adf6d63d25efc512eebb211535b53e63 /libs/subliminal/providers/addic7ed.py
parentf55492a25cf617604ff158d1fc516cf7298a4adc (diff)
downloadbazarr-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.py4
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