diff --git a/data/css/style.css b/data/css/style.css index 54c35afc..3aba9cad 100644 --- a/data/css/style.css +++ b/data/css/style.css @@ -86,6 +86,10 @@ h1{ .smalltext{ font-size: 11px; } +.mediumtext{ + font-size: 16px; + margin-left: 100px; + } .bigtext{ font-size: 22px; } diff --git a/headphones/webserve.py b/headphones/webserve.py index 0b3823ef..20c6f76b 100644 --- a/headphones/webserve.py +++ b/headphones/webserve.py @@ -56,6 +56,8 @@ class WebInterface(object): havetracks = len(c.fetchall()) try: percent = (havetracks*100)/totaltracks + if percent > 100: + percent = 100 except ZeroDivisionError: percent = 100 today = datetime.date.today() @@ -117,6 +119,8 @@ class WebInterface(object): havetracks = len(c.fetchall()) try: percent = (havetracks*100)/totaltracks + if percent > 100: + percent = 100 except ZeroDivisionError: percent = 100 if results[i][3] == 'Skipped': @@ -201,10 +205,10 @@ class WebInterface(object): artistResults = ws.Query().getArtists(ws.ArtistFilter(string.replace(name, '&', '%38'), limit=8)) if len(artistResults) == 0: logger.info(u"No results found for " + name) - page.append('''No results!Go back''') + page.append('''
No results! Go back
Search returned multiple artists. Click the artist you want to add:
''') for result in artistResults: artist = result.artist detail = artist.getDisambiguation() @@ -212,8 +216,8 @@ class WebInterface(object): disambiguation = '(%s)' % detail else: disambiguation = '' - page.append('''%s %s (more info)