diff options
Diffstat (limited to 'annex-audio-add-exif.sh')
-rwxr-xr-x | annex-audio-add-exif.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/annex-audio-add-exif.sh b/annex-audio-add-exif.sh new file mode 100755 index 0000000..b792261 --- /dev/null +++ b/annex-audio-add-exif.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash +shopt -s extglob +for f in !(*.xmp) ; do + echo $f + git annex metadata $f --set exif="$(exiftool -S \ + -filename \ + -filetypeextensions \ + -model \ + -datetimeoriginal \ + -duration $f)" +done + |