Skip to content

Commit fe5c869

Browse files
committed
[CaptchaService] Fix KEY_PATTERN
1 parent 0672bc1 commit fe5c869

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

‎module/plugins/internal/CaptchaService.py‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class CaptchaService:
99
__name__ = "CaptchaService"
10-
__version__ = "0.12"
10+
__version__ = "0.13"
1111

1212
__description__ = """Base captcha service plugin"""
1313
__license__ = "GPLv3"
@@ -52,14 +52,14 @@ def result(self, server, challenge):
5252

5353
class ReCaptcha(CaptchaService):
5454
__name__ = "ReCaptcha"
55-
__version__ = "0.05"
55+
__version__ = "0.06"
5656

5757
__description__ = """ReCaptcha captcha service plugin"""
5858
__license__ = "GPLv3"
5959
__authors__ = [("pyLoad Team", "admin@pyload.org")]
6060

6161

62-
KEY_PATTERN = r'https?://(?:www\.)?google\.com/recaptcha/api/challenge\?k=(?P<KEY>[\w-]+)'
62+
KEY_PATTERN = r'recaptcha/api/challenge\?k=(?P<KEY>[\w-]+)'
6363
KEY_AJAX_PATTERN = r'Recaptcha\.create\s*\(\s*["\'](?P<KEY>[\w-]+)'
6464

6565

@@ -113,15 +113,15 @@ def result(self, server, challenge):
113113

114114
class AdsCaptcha(CaptchaService):
115115
__name__ = "AdsCaptcha"
116-
__version__ = "0.03"
116+
__version__ = "0.04"
117117

118118
__description__ = """AdsCaptcha captcha service plugin"""
119119
__license__ = "GPLv3"
120120
__authors__ = [("pyLoad Team", "admin@pyload.org")]
121121

122122

123-
ID_PATTERN = r'http://api\.adscaptcha\.com/Get\.aspx\?[^"\']*CaptchaId=(?P<ID>\d+)'
124-
KEY_PATTERN = r'http://api\.adscaptcha\.com/Get\.aspx\?[^"\']*PublicKey=(?P<KEY>[\w-]+)'
123+
ID_PATTERN = r'api\.adscaptcha\.com/Get\.aspx\?[^"\']*CaptchaId=(?P<ID>\d+)'
124+
KEY_PATTERN = r'api\.adscaptcha\.com/Get\.aspx\?[^"\']*PublicKey=(?P<KEY>[\w-]+)'
125125

126126

127127
def detect_key(self, html=None):
@@ -175,14 +175,14 @@ def result(self, server, challenge):
175175

176176
class SolveMedia(CaptchaService):
177177
__name__ = "SolveMedia"
178-
__version__ = "0.04"
178+
__version__ = "0.05"
179179

180180
__description__ = """SolveMedia captcha service plugin"""
181181
__license__ = "GPLv3"
182182
__authors__ = [("pyLoad Team", "admin@pyload.org")]
183183

184184

185-
KEY_PATTERN = r'http://api\.solvemedia\.com/papi/challenge\.(no)?script\?k=(?P<KEY>.+?)["\']'
185+
KEY_PATTERN = r'api\.solvemedia\.com/papi/challenge\.(no)?script\?k=(?P<KEY>.+?)["\']'
186186

187187

188188
def challenge(self, key=None):

0 commit comments

Comments
 (0)