Package: jack / 3.1.1+cvs20050801-31

27_allow_year_genre_sa.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
Allow %y and %g in filenames of single-artist tracks.  Debian #351465

--- a/jack_tag.py	2006-02-05 01:17:06.000000000 +0000
+++ b/jack_tag.py	2006-02-05 01:18:38.000000000 +0000
@@ -198,7 +198,7 @@
                     newname = jack_misc.multi_replace(cf['_rename_fmt_va'], replacelist)
                     
                 else:
-                    replacelist = (("%n", cf['_rename_num'] % i[NUM]), ("%a", a_artist), ("%t", t_name), ("%l", a_title))
+                    replacelist = (("%n", cf['_rename_num'] % i[NUM]), ("%a", a_artist), ("%t", t_name), ("%l", a_title), ("%y", `cf['_id3_year']`), ("%g", genretxt))
                     newname = jack_misc.multi_replace(cf['_rename_fmt'], replacelist)
                 exec("newname = newname" + cf['_char_filter'])
                 for char_i in range(len(cf['_unusable_chars'])):