diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-02-15 08:08:22 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-02-15 08:08:22 +0000 |
commit | 590a4677f34f866911fa6c0902130f8dbea7421a (patch) | |
tree | e099100f14d048d6f8725f65af4c4a8f4009c130 /modules/exif/helpers/exif_event.php | |
parent | eb3e2359a7301588b16e0f29e96242fa48a39e6f (diff) |
Tweak EXIF extraction code to be more robust.
* Create Exif_Record_Model to track whether we've scanned the EXIF
data for this photo or not. This allows us to track photos that
don't have EXIF data (and won't have any Exif_Keys)
* Blow away old Exif_Keys when extracting, else we hit unique
index constraints.
* exif::_get_stats() -- before it was running the task forever
Diffstat (limited to 'modules/exif/helpers/exif_event.php')
-rw-r--r-- | modules/exif/helpers/exif_event.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/exif/helpers/exif_event.php b/modules/exif/helpers/exif_event.php index ac627b11..bc34d63d 100644 --- a/modules/exif/helpers/exif_event.php +++ b/modules/exif/helpers/exif_event.php @@ -26,5 +26,8 @@ class exif_event_Core { ORM::factory("exif_key") ->where("item_id", $item->id) ->delete_all(); + ORM::factory("exif_info") + ->where("item_id", $item->id) + ->delete_all(); } } |