From 93bd8f31e40d1693f27907e388428ef1e4315b98 Mon Sep 17 00:00:00 2001 From: "Alan J. Pippin" Date: Mon, 30 Jan 2012 21:08:56 -0700 Subject: [PATCH] Fixed up menu to have both MKV and ISO choices. Made disk rip go to tmpdir first, then move into final position. --- README | 2 +- rip_dvd | 6 ++++-- rip_dvd_menu.xml | 46 ++++++++++++++++++++-------------------------- 3 files changed, 25 insertions(+), 29 deletions(-) diff --git a/README b/README index 235eb88..f2f3320 100644 --- a/README +++ b/README @@ -4,7 +4,7 @@ DEPENDENCIES The following packages need to be installed on your system: Package Dependencies (apt-get install these for example): -lsdvd dvdauthor gddrescue dvdbackup tovid mencoder mplayer genisoimage libdvdcss2 +lsdvd dvdauthor gddrescue dvdbackup tovid mencoder mplayer genisoimage libdvdcss2 gpac ogmtools NOTE: In Ubuntu, depending on your version, replace libdvdcss2 with what you find on this page. https://help.ubuntu.com/community/RestrictedFormats/PlayingDVDs diff --git a/rip_dvd b/rip_dvd index 90a3c5e..74290c0 100755 --- 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 diff --git a/rip_dvd_menu.xml b/rip_dvd_menu.xml index 255bd05..ed79a51 100644 --- a/rip_dvd_menu.xml +++ b/rip_dvd_menu.xml @@ -2,68 +2,62 @@ - - -- 2.34.1