mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-02 21:03:17 +02:00
Amazon metadata download: Recognize another markup variant for book comments
This commit is contained in:
parent
790b1a2b37
commit
0749ba592c
1 changed files with 5 additions and 1 deletions
|
|
@ -676,6 +676,10 @@ def parse_comments(self, root, raw):
|
|||
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 @@ def parse_language(self, pd):
|
|||
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')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue