Amazon metadata download: Recognize another markup variant for book comments

This commit is contained in:
Kovid Goyal 2021-11-10 11:11:01 +05:30
parent 790b1a2b37
commit 0749ba592c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -676,6 +676,10 @@ class Worker(Thread): # Get details {{{
desc = root.xpath('//div[@id="ps-content"]/div[@class="content"]')
if desc:
ans = self._render_comments(desc[0])
else:
ns = tuple(self.selector('#bookDescription_feature_div .a-expander-content'))
if ns:
ans = self._render_comments(ns[0])
desc = root.xpath(
'//div[@id="productDescription"]/*[@class="content"]')
@ -971,7 +975,7 @@ class Worker(Thread): # Get details {{{
class Amazon(Source):
name = 'Amazon.com'
version = (1, 2, 19)
version = (1, 2, 20)
minimum_calibre_version = (2, 82, 0)
description = _('Downloads metadata and covers from Amazon')