> Yes, the patch below should work for you.

Sorry, there was a problem with the previous patch.  The one below
works, though (tested):

--- jack_freedb.py~     2005-07-26 23:25:48.108852592 +0100
+++ jack_freedb.py      2005-07-26 23:51:31.403236184 +0100
@@ -34,6 +34,7 @@
 names_available = None          # freedb info is available
 dir_created = None              # dirs are only renamed if we have created them
 NUM, LEN, START, COPY, PRE, CH, RIP, RATE, NAME = range(9)
+freedb_inexact_match = -1
 
 freedb_servers = {
     'freedb': {
@@ -231,6 +232,9 @@
     buf = f.readline()
     if buf and buf[0:1] == "2":
         if buf[0:3] in ("210", "211"): # Found inexact or multiple exact 
matches, list follows
+            if buf[0:3] == "211":
+                global freedb_inexact_match
+                freedb_inexact_match = 1
             print "Found the following matches. Choose one:"
             num = 1
             matches = []
@@ -382,7 +386,7 @@
         for i in read_ids:
             if i == cd_id:
                 id_matched = 1
-        if not id_matched and warn:
+        if not id_matched and warn and freedb_inexact_match < 1:
             print "Warning: calculated id (" + cd_id + ") and id from freedb 
file"
             print "       :", read_ids
             print "       : do not match, hopefully due to inexact match."

-- 
Martin Michlmayr
http://www.cyrius.com/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to