Permalink
Browse files

improved track view page title

  • Loading branch information...
1 parent 8d6e538 commit e6821cf51e8d115063b9db7b96f59e0e5144996f @andreisavu committed May 2, 2009
Showing with 7 additions and 2 deletions.
  1. +7 −2 index.py
View
@@ -72,8 +72,13 @@ def GET(self, id):
raise web.seeother(path)
class do_view:
- def GET(self, id):
- return render.view(search.get_by_id(id, db), title='Media view')
+ def GET(self, id):
+ 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:
def GET(self):

0 comments on commit e6821cf

Please sign in to comment.