Back out only doing the smart_update if the date changes. This prevents cover thumbnails from being regenerated for different devices.

This commit is contained in:
Charles Haley 2012-09-18 14:53:40 +02:00
parent ef34e38035
commit dde1512191

View File

@ -1673,11 +1673,10 @@ class DeviceMixin(object): # {{{
if update_metadata:
mi = db.get_metadata(id_, index_is_id=True,
get_cover=get_covers)
if book.get('last_modified', None) != mi.last_modified:
book.smart_update(db.get_metadata(id_,
index_is_id=True,
get_cover=get_covers),
replace_metadata=True)
book.smart_update(db.get_metadata(id_,
index_is_id=True,
get_cover=get_covers),
replace_metadata=True)
book.in_library = 'UUID'
# ensure that the correct application_id is set
book.application_id = id_