From dcfa61d5b29b1893f8bc593c88a848e685840ddf Mon Sep 17 00:00:00 2001 From: Remy Date: Mon, 11 Jul 2011 15:12:01 -0700 Subject: [PATCH] Added disambiguation to search results --- webServer.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/webServer.py b/webServer.py index 705290f2..00a66d54 100644 --- a/webServer.py +++ b/webServer.py @@ -173,7 +173,12 @@ class Headphones: page.append('''Search returned multiple artists. Click the artist you want to add:

''') for result in artistResults: artist = result.artist - page.append('''%s (more info)
''' % (u.extractUuid(artist.id), artist.name, u.extractUuid(artist.id))) + detail = artist.getDisambiguation() + if detail: + disambiguation = '(%s)' % detail + else: + disambiguation = '' + page.append('''%s %s (more info)
''' % (u.extractUuid(artist.id), artist.name, disambiguation, u.extractUuid(artist.id))) return page else: for result in artistResults: