add 3gp
This commit is contained in:
parent
d57439c132
commit
b71290d038
1 changed files with 10 additions and 10 deletions
|
@ -133,7 +133,7 @@ run_fix () {
|
||||||
image/jpeg)
|
image/jpeg)
|
||||||
MIMEDEST="${mimedestpic}/${subdestpic}"
|
MIMEDEST="${mimedestpic}/${subdestpic}"
|
||||||
;;
|
;;
|
||||||
video/mp4|video/m4a)
|
video/mp4|video/m4a|video/3gpp)
|
||||||
MIMEDEST="${mimedestvid}/${subdestvid}"
|
MIMEDEST="${mimedestvid}/${subdestvid}"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
@ -143,13 +143,13 @@ run_fix () {
|
||||||
if [ -n "${MIMEDEST+x}" ] ; then
|
if [ -n "${MIMEDEST+x}" ] ; then
|
||||||
|
|
||||||
if $forcedate; then
|
if $forcedate; then
|
||||||
[ -n "$newDateTimeOriginal" ] && exiftool "-DateTimeOriginal=$newDateTimeOriginal" "$file"
|
$setdate && [ -n "$newDateTimeOriginal" ] && exiftool "-DateTimeOriginal=$newDateTimeOriginal" "$file"
|
||||||
exiftool '-createdate<datetimeoriginal' -if '($datetimeoriginal)' "$file"
|
$setdate && exiftool '-createdate<datetimeoriginal' -if '($datetimeoriginal)' "$file"
|
||||||
exiftool '-datetimeoriginal<createdate' -if '(not $datetimeoriginal and $createdate)' "$file"
|
$setdate && exiftool '-datetimeoriginal<createdate' -if '(not $datetimeoriginal and $createdate)' "$file"
|
||||||
else
|
else
|
||||||
[ -n "$newDateTimeOriginal" ] && exiftool "-DateTimeOriginal=$newDateTimeOriginal" -if '(not $datetimeoriginal)' "$file"
|
$setdate && [ -n "$newDateTimeOriginal" ] && exiftool "-DateTimeOriginal=$newDateTimeOriginal" -if '(not $datetimeoriginal)' "$file"
|
||||||
exiftool '-createdate<datetimeoriginal' -if '(not $createdate and $datetimeoriginal)' "$file"
|
$setdate && exiftool '-createdate<datetimeoriginal' -if '(not $createdate and $datetimeoriginal)' "$file"
|
||||||
exiftool '-datetimeoriginal<createdate' -if '(not $datetimeoriginal and $createdate)' "$file"
|
$setdate && exiftool '-datetimeoriginal<createdate' -if '(not $datetimeoriginal and $createdate)' "$file"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
loginfo "$(exiftool -filename -createdate -datetimeoriginal "$file")"
|
loginfo "$(exiftool -filename -createdate -datetimeoriginal "$file")"
|
||||||
|
@ -187,9 +187,9 @@ if [ $# -gt 0 ]; then
|
||||||
esac
|
esac
|
||||||
|
|
||||||
else
|
else
|
||||||
loginfo "Progress all *.jpg, *.jpeg, *.png and mp4 files in pwd $(pwd)"
|
loginfo "Progress all *.jpg, *.jpeg, *.png and mp4, *.3gp files in pwd $(pwd)"
|
||||||
all=$(find ${maxdepth:+-maxdepth} ${maxdepth:+$maxdepth} -type f |grep -i ".jpg$\|.jpeg$\|.mp4$\|.png$"|wc -l)
|
all=$(find ${maxdepth:+-maxdepth} ${maxdepth:+$maxdepth} -type f |grep -i ".jpg$\|.jpeg$\|.mp4$\|.png$\|.3gp$"|wc -l)
|
||||||
find ${maxdepth:+-maxdepth} ${maxdepth:+$maxdepth} -type f |grep -i ".jpg$\|.jpeg$\|.mp4$\|.png$"|while read file; do
|
find ${maxdepth:+-maxdepth} ${maxdepth:+$maxdepth} -type f |grep -i ".jpg$\|.jpeg$\|.mp4$\|.png$\|.3gp$"|while read file; do
|
||||||
let "i=i+1"
|
let "i=i+1"
|
||||||
loginfo "$i/$all"
|
loginfo "$i/$all"
|
||||||
run_fix "$file"
|
run_fix "$file"
|
||||||
|
|
Loading…
Reference in a new issue