# check to see if dvdname is a full path to an ISO file
# if it is, set dvdname and isofile appropriately
- file "$dvdname" | grep -q "ISO"
+ file "$dvdname" | grep -q -e "ISO" -e "UDF"
if [ $? == 0 ]; then
# It is a valid ISO file, now strip the extension off our dvdname
isofile="$dvdname"
if [[ -n "$mailto" ]]; then
echo -e "$msg" | mailx -s "dvd rip of $dvdname FAILED" "$mailto"
fi
+ keep_intermediate_files=1
exit 1
}
CROPCHECK=`echo "$CROP" | awk -F ':' '{ print $1 }'`
echo " Final crop value of $CROP with cropcheck value of $CROPCHECK" >> "$logfile"
if [ -z "$CROP" ]; then
- fatal_and_exit "-E- Unable to extract CROP value from iso: $isofile"
+ echo "-W- Unable to extract CROP value from iso: $isofile" | tee -a "$logfile"
+ return
fi
if [ $CROPCHECK -lt 0 ]; then
CROP=""
CROPCHECK=`echo "$CROP" | awk -F ':' '{ print $1 }'`
echo " Final crop value of $CROP with cropcheck value of $CROPCHECK" >> "$logfile"
if [ -z "$CROP" ]; then
- fatal_and_exit "-E- Unable to extract CROP value from iso: $isofile"
+ echo "-W- Unable to extract CROP value from iso: $isofile" | tee -a "$logfile"
+ return
fi
if [ $CROPCHECK -lt 0 ]; then
CROP=""