* morituri/common/program.py:

Add %y to template for year.  Fixes #98.
This commit is contained in:
Thomas Vander Stichele
2012-11-22 23:22:26 +00:00
parent 9b4e653ae4
commit 26827195c0
2 changed files with 8 additions and 0 deletions

View File

@@ -170,6 +170,7 @@ class Program(log.Loggable):
assert type(template) is unicode, "%r is not unicode" % template
# the template is similar to grip, except for %s/%S
# see #gripswitches
# returns without extension
@@ -189,6 +190,8 @@ class Program(log.Loggable):
if self.metadata:
release = self.metadata.release or '0000'
v['y'] = release[:4]
v['A'] = filterForPath(self.metadata.artist)
v['S'] = filterForPath(self.metadata.sortName)
v['d'] = filterForPath(self.metadata.title)