Change the captcha error text

This commit is contained in:
Kovid Goyal 2017-02-26 11:56:35 +05:30
parent 2583397c47
commit 4f5155d190

View File

@ -1076,7 +1076,9 @@ class Amazon(Source):
matches.append(url) matches.append(url)
break break
if not matches and root.xpath('//form[@action="/errors/validateCaptcha"]'): if not matches and root.xpath('//form[@action="/errors/validateCaptcha"]'):
raise CaptchaError('Amazon returned a CAPTCHA page, probably because you downloaded too many books. Wait for some time and try again.') raise CaptchaError('Amazon returned a CAPTCHA page. Recently Amazon has begun using statistical'
' profiling to block access to its website. As such this metadata plugin is'
' unlikely to ever work reliably.')
# Keep only the top 5 matches as the matches are sorted by relevance by # Keep only the top 5 matches as the matches are sorted by relevance by
# Amazon so lower matches are not likely to be very relevant # Amazon so lower matches are not likely to be very relevant