summaryrefslogtreecommitdiff
path: root/nephilim/common.py
diff options
context:
space:
mode:
authorAnton Khirnov <wyskas@gmail.com>2010-04-30 08:25:54 +0200
committerAnton Khirnov <wyskas@gmail.com>2010-04-30 08:25:54 +0200
commit48c1445953b12bd247e1d74dbd436d867cea7ebd (patch)
tree8882090b02f87ddf3ecdfff410c96ca54e507133 /nephilim/common.py
parent1ff1ec58b8ad638e7ffa901a38351cecb3478320 (diff)
song: use string.Template for expanding $tags.
Diffstat (limited to 'nephilim/common.py')
-rw-r--r--nephilim/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nephilim/common.py b/nephilim/common.py
index 334ced9..3bf9ff9 100644
--- a/nephilim/common.py
+++ b/nephilim/common.py
@@ -70,7 +70,7 @@ def expand_tags(string, expanders):
string = expander.expand_tags(string)
#remove unexpanded tags
- return re.sub('\$\w+', '', string)
+ return re.sub('\$\{.*\}', '', string)
def generate_metadata_path(song, dir_tag, file_tag):
"""Generate dirname and (db files only) full file path for reading/writing metadata files