mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 14:14:31 +02:00
Amazon metadata download: Update plugin for website changes to Amazon Brazil. Fixes #1420629 [Amazon.br metadata source, error with accents](https://bugs.launchpad.net/calibre/+bug/1420629)
This commit is contained in:
parent
22f386303d
commit
96bc19e652
1 changed files with 2 additions and 0 deletions
|
|
@ -240,6 +240,8 @@ def get_details(self):
|
|||
return
|
||||
|
||||
oraw = raw
|
||||
if 'amazon.com.br' in self.url:
|
||||
raw = raw.decode('utf-8') # amazon.com.br serves utf-8 but has an incorrect latin1 <meta> tag
|
||||
raw = xml_to_unicode(raw, strip_encoding_pats=True,
|
||||
resolve_entities=True)[0]
|
||||
if '<title>404 - ' in raw:
|
||||
|
|
|
|||
Loading…
Reference in a new issue