From 3aa178a4a67c4193e8d9d72e022b52d8d3e6075c Mon Sep 17 00:00:00 2001 From: Remy Date: Sat, 23 Jul 2011 16:03:39 -0700 Subject: [PATCH] Added logging to WebUI (refresh browser if the font is huge so it uses the new css) --- data/css/style.css | 4 ++++ headphones/mb.py | 6 ++---- headphones/templates.py | 3 ++- headphones/webserve.py | 18 ++++++++++++++++++ 4 files changed, 26 insertions(+), 5 deletions(-) diff --git a/data/css/style.css b/data/css/style.css index 2632ced6..57735a2e 100644 --- a/data/css/style.css +++ b/data/css/style.css @@ -99,6 +99,10 @@ h1{ font-size: 16px; margin-left: 100px; } +.logtext{ + font-size: 14px; + padding: 4px + } .bigtext{ font-size: 22px; } diff --git a/headphones/mb.py b/headphones/mb.py index bd71f89c..dca525af 100644 --- a/headphones/mb.py +++ b/headphones/mb.py @@ -25,14 +25,12 @@ def findArtist(name, limit=1): chars = set('!?') if any((c in chars) for c in name): - term = '"'+name+'"' - else: - term = name + name = '"'+name+'"' while attempt < 5: try: - artistResults = q.getArtists(ws.ArtistFilter(query=term, limit=limit)) + artistResults = q.getArtists(ws.ArtistFilter(query=name, limit=limit)) break except WebServiceError, e: logger.warn('Attempt to query MusicBrainz for %s failed: %s' % (name, e)) diff --git a/headphones/templates.py b/headphones/templates.py index 979920f4..993219b3 100644 --- a/headphones/templates.py +++ b/headphones/templates.py @@ -34,6 +34,7 @@ _nav = '''