mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 07:43:08 +02:00
...
This commit is contained in:
parent
a75db41a22
commit
436f9ff752
1 changed files with 1 additions and 1 deletions
|
|
@ -466,7 +466,7 @@ def parse_pubdate(self, pd):
|
|||
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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue