Package: jack / 3.1.1+cvs20050801-31

60_ask_edit_freedb_when_query_fails.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Ask users whether they want to edit the FreeDB data manually when the
FreeDB query fails.

--- a/jack_prepare.py
+++ b/jack_prepare.py
@@ -493,7 +493,12 @@
             x = raw_input("\nfreedb search failed, continue? ") + "x"
             if string.upper(x[0]) != "Y":
                 sys.exit(0)
-            cf['_query_on_start'] = 0
+            if not cf['_edit_freedb']:
+                x = raw_input("\nDo you want to edit the freedb data?  (y/N) ") + "x"
+                if x and x[0].upper() == "Y":
+                    cf['_edit_freedb'] = 1
+                else:
+                    cf['_query_on_start'] = 0
         else:
             jack_display.exit()