mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-04 03:27:00 -05: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
					
				@ -240,6 +240,8 @@ class Worker(Thread):  # Get details {{{
 | 
			
		||||
            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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user