From 436f9ff75212044807181722c8c0262d99320175 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 1 Mar 2012 09:48:13 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/metadata/sources/amazon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/metadata/sources/amazon.py b/src/calibre/ebooks/metadata/sources/amazon.py index b4a210f131..fb1ee4af4e 100644 --- a/src/calibre/ebooks/metadata/sources/amazon.py +++ b/src/calibre/ebooks/metadata/sources/amazon.py @@ -466,7 +466,7 @@ class Worker(Thread): # Get details {{{ for x in reversed(pd.xpath(self.publisher_xpath)): if x.tail: ans = x.tail - date = ans.partition('(')[-1].replace(')', '').strip() + date = ans.rpartition('(')[-1].replace(')', '').strip() date = self.delocalize_datestr(date) return parse_date(date, assume_utc=True)