|
|
|
@ -44,6 +44,9 @@ while [ $# -gt 0 ]; do |
|
|
|
|
postfix=$(basename "$1" | tr '[:upper:]' '[:lower:]' | sed 's,[/ ],_,g;s,[][(){}],,g') |
|
|
|
|
type=${globaltype:-${postfix##*.}} |
|
|
|
|
date= |
|
|
|
|
if [ "${movie//${type}/}" != "${movie}" ]; then |
|
|
|
|
date=$(avprobe "$1" 2>&1 | sed -n 's,^ *creation_time *: *\([0-9][0-9][0-9][0-9]\)-\([0-9][0-9]\)-\([0-9][0-9]\) *\([0-9][0-9]\):\([0-9][0-9]\):\([0-9][0-9]\) *$,\1\2\3-\4\5\6,p' | sort | uniq | head -1) |
|
|
|
|
fi |
|
|
|
|
if [ "${exif//${type}/}" != "$exif" ]; then |
|
|
|
|
date=$(exif -t 0x132 "$1" | sed -n 's/.*Value: \([0-9]*\):\([0-9]*\):\([0-9]*\) \([0-9]*\):\([0-9]*\):\([0-9]*\)/\1\2\3-\4\5\6/p' | uniq) |
|
|
|
|
if [ -z "$date" ]; then |
|
|
|
|