plegall / Piwigo-write_metadata

3 stars 4 forks source link

Ignore videos (non-photos) #11

Open jradwan opened 5 years ago

jradwan commented 5 years ago

The "read metadata" plugin "ignores" video files (if you click "Show metadata" on the Properties page, it will say "This file type doesn't use metadata").

However, if you click "Write metadata" on the Properties page of a video, the plugin will call exiftool, which will write out a copy of the video (which can take a long time) but not actually do anything (i.e., the original video is not touched, and the temporary file created by exiftool is deleted).

Could the plugin do a quick check before calling exiftool to confirm it's being asked to operate on a photo and if not, do nothing? This would also be helpful in batch mode.