fix franceinter radio

This commit is contained in:
Romain Bignon 2011-04-10 16:48:35 +02:00
commit f3b2cea4ea
6 changed files with 26 additions and 22 deletions

View file

@ -48,7 +48,10 @@ class RadioListFormatter(IFormatter):
result = u'%s* (%s) %s%s\n' % (ReplApplication.BOLD, item['id'], item['title'], ReplApplication.NC)
result += ' %-30s' % item['description']
if item['current'] is not NotLoaded:
result += ' (Current: %s - %s)' % (item['current'].artist, item['current'].title)
if item['current'].artist:
result += ' (Current: %s - %s)' % (item['current'].artist, item['current'].title)
else:
result += ' (Current: %s)' % item['current'].title
return result