mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Fix #1414 (Stack trace when SD card in reader)
This commit is contained in:
parent
2d4b0c89b1
commit
4dfb9a0d3f
@ -60,7 +60,7 @@ class Book(object):
|
|||||||
rpath = book_metadata_field("path")
|
rpath = book_metadata_field("path")
|
||||||
id = book_metadata_field("id", formatter=int)
|
id = book_metadata_field("id", formatter=int)
|
||||||
sourceid = book_metadata_field("sourceid", formatter=int)
|
sourceid = book_metadata_field("sourceid", formatter=int)
|
||||||
size = book_metadata_field("size", formatter=int)
|
size = book_metadata_field("size", formatter=lambda x : int(float(x)))
|
||||||
# When setting this attribute you must use an epoch
|
# When setting this attribute you must use an epoch
|
||||||
datetime = book_metadata_field("date", formatter=strptime, setter=strftime)
|
datetime = book_metadata_field("date", formatter=strptime, setter=strftime)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user