import urllib

from playa import app

@app.template_filter('duration')
def duration(seconds):
    return '%s:%s' % (int(seconds / 60), ('0' + str(int(seconds % 60)))[-2:])

@app.template_filter('song_title')
def song_title(metadata):
    if 'artist' in metadata:
        return '%s - %s' % (metdata['artist'], metadata['title'])
    return metadata['title']

app.template_filter('urlquote')(urllib.quote)
@@ -287,16 +287,17 @@
 ' %25 (met
+a
 data%5B'ar

Correct bug with metadata ref