mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
a75db41a22
commit
436f9ff752
@ -466,7 +466,7 @@ class Worker(Thread): # Get details {{{
|
|||||||
for x in reversed(pd.xpath(self.publisher_xpath)):
|
for x in reversed(pd.xpath(self.publisher_xpath)):
|
||||||
if x.tail:
|
if x.tail:
|
||||||
ans = x.tail
|
ans = x.tail
|
||||||
date = ans.partition('(')[-1].replace(')', '').strip()
|
date = ans.rpartition('(')[-1].replace(')', '').strip()
|
||||||
date = self.delocalize_datestr(date)
|
date = self.delocalize_datestr(date)
|
||||||
return parse_date(date, assume_utc=True)
|
return parse_date(date, assume_utc=True)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user