Skip to content

Commit

Permalink
improved track view page title
Browse files Browse the repository at this point in the history
  • Loading branch information
andreisavu committed May 2, 2009
1 parent 8d6e538 commit e6821cf
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions index.py
Expand Up @@ -72,8 +72,13 @@ def GET(self, id):
raise web.seeother(path) raise web.seeother(path)


class do_view: class do_view:
def GET(self, id): def GET(self, id):
return render.view(search.get_by_id(id, db), title='Media view') f = search.get_by_id(id, db)
if f.title and f.artist:
title = "%s : %s" % (f.artist, f.title)
else:
title = f.filename
return render.view(f, title)


class do_api_about: class do_api_about:
def GET(self): def GET(self):
Expand Down

0 comments on commit e6821cf

Please sign in to comment.