dvdrip-retry-botched-vobs: Be more vocal about wrong discs.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 6 Mar 2022 01:26:43 +0000 (01:26 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 6 Mar 2022 01:26:43 +0000 (01:26 +0000)
dvdrip-retry-botched-vobs

index 4504aad..f0a1563 100755 (executable)
@@ -6,10 +6,15 @@ find "$@" -type f -name "*.retry" -print | while IFS= read -r r; do
   iso=${r%.retry}.iso
 
   want_id=$(dvd-id "$iso")
+  last_wrong=nil
   echo "Insert $iso..."
   while :; do
     id=$(dvd-id "$dev")
-    case $id in "$want_id") break ;; esac
+    case $id in
+      "$want_id") break ;;
+      "$last_wrong") ;;
+      *) echo "No, that's $id -- wanted $want_id..."; last_wrong=$id ;;
+    esac
     sleep 2
   done