mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-04-01 14:52:29 -04:00
Fix #2132182 [Metadata downloaded from Amazon has incorrect series number](https://bugs.launchpad.net/calibre/+bug/2132182)
This commit is contained in:
parent
ca724cc144
commit
454f430371
@ -843,7 +843,7 @@ class Worker(Thread): # Get details {{{
|
||||
if a:
|
||||
raw = self.tostring(a[0], encoding='unicode', method='text', with_tail=False)
|
||||
if self.domain == 'jp':
|
||||
m = re.search(r'(?P<index>[0-9.]+)\s*(?:巻|冊)\s*\(全\s*([0-9.]+)\s*(?:巻|冊)\):\s*(?P<series>.+)', raw.strip())
|
||||
m = re.search(r'全\s*[0-9.]+\s*(?:巻|冊)中第\s*(?P<index>[0-9.]+)\s*(?:巻|冊)\s*:\s*(?P<series>.+)', raw.strip())
|
||||
else:
|
||||
m = re.search(r'(?:Book|Libro|Buch)\s+(?P<index>[0-9.]+)\s+(?:of|de|von)\s+([0-9.]+)\s*:\s*(?P<series>.+)', raw.strip())
|
||||
if m is not None:
|
||||
@ -1090,7 +1090,7 @@ class Worker(Thread): # Get details {{{
|
||||
class Amazon(Source):
|
||||
|
||||
name = 'Amazon.com'
|
||||
version = (1, 3, 13)
|
||||
version = (1, 3, 14)
|
||||
minimum_calibre_version = (2, 82, 0)
|
||||
description = _('Downloads metadata and covers from Amazon')
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user