if [ "${file%.part}" = "${file}" -a ! -s "$thumb" -a -s "$file" ] && mkdir "$tmp"; then
length="$( ffprobe -show_entries stream=duration "$file" 2>&- )"
if [ "${file%.part}" = "${file}" -a ! -s "$thumb" -a -s "$file" ] && mkdir "$tmp"; then
length="$( ffprobe -show_entries stream=duration "$file" 2>&- )"