ZenphotoCMS Forum
Adding metadata to videos from file - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Adding metadata to videos from file (/thread-4957.html)



Adding metadata to videos from file - danielsbrewer - 2009-04-03

Hi,

As I brought up a while back, I would like to automatically add metadata to a video from a file with the same filename but with .meta on the end e.g. DSCF3432.meta. I have a script that produces the .meta files from iPhoto. I produced a patch that added some stuff to the end of getImageMetadata in zp-core/functions.php and this was working great. In the latest version this has broken and I would like to get it working again. SO some questions:

  1. Would it be possible to produce something like this as a plugin?
  2. Where would it be best to add this functionality?
  3. Any ideas why it broke in the latest version? Moving the video stuff to a plugin???

Thanks




Adding metadata to videos from file - sbillard - 2009-04-03

  1. Yes
  2. Use the new_object filter as a starting point.
  3. If you patched the core, the patch would naturally get lost on the update.