mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 06:03:44 +02:00
...
This commit is contained in:
parent
d76bf663ef
commit
6040689447
1 changed files with 2 additions and 0 deletions
|
|
@ -106,6 +106,8 @@ def parse(self, raw):
|
|||
parts = pub.partition(':')[0::2]
|
||||
pub = parts[1] or parts[0]
|
||||
try:
|
||||
if ', Ship Date:' in pub:
|
||||
pub = pub.partition(', Ship Date:')[0]
|
||||
q = parse_only_date(pub, assume_utc=True)
|
||||
if q.year != UNDEFINED_DATE:
|
||||
mi.pubdate = q
|
||||
|
|
|
|||
Loading…
Reference in a new issue