Fixed up menu to have both MKV and ISO choices.
[rip_dvd/.git] / rip_dvd
diff --git a/rip_dvd b/rip_dvd
index 90a3c5ef0e653fb61c188b172d3c725f5807f970..74290c0d8447920c3857822ad6ab11ba944cce92 100755 (executable)
--- a/rip_dvd
+++ b/rip_dvd
@@ -1842,12 +1842,14 @@ if [ $mirror_mode -eq 1 ]; then
 
   if [[ "$ripper" == "makemkv" ]]; then
       # use makemkv to make an MKV file of the disk
-      make_dvd_mkv_image "$dest/$dvdname.mkv" "disc" "$makemkv_disc_id"
+      make_dvd_mkv_image "$tmpdir/$dvdname.mkv" "disc" "$makemkv_disc_id"
+      mv "$tmpdir/$dvdname.mkv" "$dest/$dvdname.mkv"
       # add this video data to the mythtv DB
       fill_mythvideo_metadata "$dest_filename"
   else       
       # use ddrescue to make an ISO image of the disk
-      make_dvd_iso_image "$dest/$dvdname.iso"
+      make_dvd_iso_image "$tmpdir/$dvdname.iso"
+      mv "$tmpdir/$dvdname.iso" "$dest/$dvdname.iso"
       # add this video data to the mythtv DB
       fill_mythvideo_metadata "$dest_filename"
   fi