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

@ -35,7 +35,10 @@ class Emission(CapBaseObject):
return False
def __unicode__(self):
return u'%s - %s' % (self.artist, self.title)
if self.artist:
return u'%s - %s' % (self.artist, self.title)
else:
return self.title
class Stream(CapBaseObject):
def __init__(self, id):