mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Change the captcha error text
This commit is contained in:
parent
2583397c47
commit
4f5155d190
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user