Accept null last_modified dates from a smart device. Can happen when books are added from a scan and not matched.

This commit is contained in:
Charles Haley 2013-10-07 15:51:28 +02:00
parent 5083f9f13c
commit 2b7f9c4b3d

View File

@ -682,6 +682,8 @@ class SMART_DEVICE_APP(DeviceConfig, DevicePlugin):
return None
def _metadata_in_cache(self, uuid, ext, lastmod):
if lastmod == 'None':
return None
from calibre.utils.date import parse_date, now
key = uuid+ext
if isinstance(lastmod, unicode):