From 590a4677f34f866911fa6c0902130f8dbea7421a Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 15 Feb 2009 08:08:22 +0000 Subject: 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 --- modules/exif/helpers/exif_event.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/exif/helpers/exif_event.php') 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(); } } -- cgit v1.2.3