From: Alan J. Pippin <ajp@pippins.net>
Date: Tue, 19 May 2009 23:02:26 +0000 (-0600)
Subject: Added dvdname to 2 pass logfile to enable multiple instances of rip_dvd to run concur... 
X-Git-Tag: 1_0~32
X-Git-Url: http://git.pippins.net/%27%20.%20%24this-%3Ephpgw_js_url%20.%20%27/jscalendar/images/%7Bnolink%7D?a=commitdiff_plain;h=edce80128c3ac2e2fa9ec47582eefaea654e4f89;p=rip_dvd%2F.git

Added dvdname to 2 pass logfile to enable multiple instances of rip_dvd to run concurrently
Added safedvdname declaration that removes special characters from the dvdname for 2 pass logfile name
---

diff --git a/rip_dvd b/rip_dvd
index a97a343..bd4442a 100755
--- a/rip_dvd
+++ b/rip_dvd
@@ -239,9 +239,12 @@ if [ -z "$vobfile" ]; then
   vobfile="$dest/$dvdname.VOB"
 fi
 
+# make a "safe" dvdname (remove special characters)
+safedvdname=`basename "$dvdname" | sed 's/[ !&*\\$?]/_/g'`
+
 # set up some variables to hold various logfiles
 logfile="$logdir/$dvdname.log"
-passlogfile="$tmpdir/divx2pass.log"
+passlogfile="$tmpdir/$safedvdname.log"
 ddrescuelog=`tempfile`
 dvdauthorlog=`tempfile`
 encodelog=`tempfile`