Revert "ServiceName: getName() cannot be called with zero arguments."
authorLittlesat <littlesat99@yahoo.com>
Sun, 3 Feb 2013 10:23:50 +0000 (11:23 +0100)
committerLittlesat <littlesat99@yahoo.com>
Sun, 3 Feb 2013 10:23:50 +0000 (11:23 +0100)
This reverts commit 027d32076d459084f45dde81dd439c12c26e1e99.

It was a fix for the <n/a> channels but it has a big site effect
that the channelname was not available anymore on the OSD when there
was no explecit #description in the settings

lib/python/Components/Converter/ServiceName.py

index 802df9e..1a291e1 100644 (file)
@@ -32,7 +32,7 @@ class ServiceName(Converter, object):
                if self.type == self.NAME:
                        name = ref and info.getName(ref)
                        if not name:
-                               return ""
+                               name = info.getName()
                        return name.replace('\xc2\x86', '').replace('\xc2\x87', '')
                elif self.type == self.PROVIDER:
                        return info.getInfoString(iServiceInformation.sProvider)