tags 351465 + patch pending
thanks

* Martin Michlmayr <[EMAIL PROTECTED]> [2006-02-05 01:15]:
> When you have a VA CD, you can put %g (genre) and %y (year) in the
> filename but this is not possible when it's a single artist CD.
> There's no good reason for this.

Allow %y and %g in filenames of single-artist tracks.

--- orig/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'])):

-- 
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