mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #2961 (calibre crashes when syncing with kindle DX)
This commit is contained in:
parent
208fa57895
commit
944c19fd1a
@ -21,6 +21,7 @@ from calibre.utils.podofo import get_metadata as podofo_get_metadata, \
|
|||||||
set_metadata as podofo_set_metadata, Unavailable, get_metadata_quick
|
set_metadata as podofo_set_metadata, Unavailable, get_metadata_quick
|
||||||
|
|
||||||
def get_quick_metadata(stream):
|
def get_quick_metadata(stream):
|
||||||
|
return get_metadata_pypdf(stream)
|
||||||
raw = stream.read()
|
raw = stream.read()
|
||||||
mi = get_metadata_quick(raw)
|
mi = get_metadata_quick(raw)
|
||||||
if mi.title == '_':
|
if mi.title == '_':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user