if info is None:
return ""
if self.type == self.NAME:
- name = ref and info.getName(ref) or info.getName()
+ name = ref and info.getName(ref)
+ if name is None:
+ name = info.getName()
return name.replace('\xc2\x86', '').replace('\xc2\x87', '')
elif self.type == self.PROVIDER:
return self.getServiceInfoValue(info, iServiceInformation.sProvider, ref)
text = property(getText)
def changed(self, what):
- if what[0] != self.CHANGED_SPECIFIC or what[1] in [iPlayableService.evStart]:
+ if what[0] != self.CHANGED_SPECIFIC or what[1] in (iPlayableService.evStart,):
Converter.changed(self, what)