Package: jack / 3.1.1+cvs20050801-31

30_add_freedb_mirrors.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
Update the list of FreeDB mirrors.

Depends on 29_remove_freedb-de.patch

--- a/jack_freedb.py
+++ b/jack_freedb.py
@@ -38,12 +38,75 @@
 dir_created = None              # dirs are only renamed if we have created them
 NUM, LEN, START, COPY, PRE, CH, RIP, RATE, NAME = range(9)
 
+# Warning: code duplication.  Make a function through which information can
+# be requested, and let it fall back to generic information (e.g. my_mail,
+# mail, id) and only require individual entries to have 'host').  FIXME
 freedb_servers = {
     'freedb': {
         'host': "freedb.freedb.org",
         'id': prog_name + " " + prog_version,
         'mail': "freedb-submit@freedb.org",
         'my_mail': "default"
+    },
+    'freedb-at': {
+        'host': "at.freedb.org",
+        'id': prog_name + " " + prog_version,
+        'mail': "freedb-submit@freedb.org",
+        'my_mail': "default"
+    },
+    'freedb-au': {
+        'host': "au.freedb.org",
+        'id': prog_name + " " + prog_version,
+        'mail': "freedb-submit@freedb.org",
+        'my_mail': "default"
+    },
+    'freedb-ca': {
+        'host': "ca.freedb.org",
+        'id': prog_name + " " + prog_version,
+        'mail': "freedb-submit@freedb.org",
+        'my_mail': "default"
+    },
+    'freedb-es': {
+        'host': "es.freedb.org",
+        'id': prog_name + " " + prog_version,
+        'mail': "freedb-submit@freedb.org",
+        'my_mail': "default"
+    },
+    'freedb-fi': {
+        'host': "fi.freedb.org",
+        'id': prog_name + " " + prog_version,
+        'mail': "freedb-submit@freedb.org",
+        'my_mail': "default"
+    },
+    'freedb-jp': {
+        'host': "jp.freedb.org",
+        'id': prog_name + " " + prog_version,
+        'mail': "freedb-submit@freedb.org",
+        'my_mail': "default"
+    },
+    'freedb-ru': {
+        'host': "ru.freedb.org",
+        'id': prog_name + " " + prog_version,
+        'mail': "freedb-submit@freedb.org",
+        'my_mail': "default"
+    },
+    'freedb-uk': {
+        'host': "uk.freedb.org",
+        'id': prog_name + " " + prog_version,
+        'mail': "freedb-submit@freedb.org",
+        'my_mail': "default"
+    },
+    'freedb-uk2': {
+        'host': "uk2.freedb.org",
+        'id': prog_name + " " + prog_version,
+        'mail': "freedb-submit@freedb.org",
+        'my_mail': "default"
+    },
+    'freedb-us': {
+        'host': "us.freedb.org",
+        'id': prog_name + " " + prog_version,
+        'mail': "freedb-submit@freedb.org",
+        'my_mail': "default"
     },
 }