remove unneeded N/A
[enigma2.git] / lib / python / Components / Converter / RadioText.py
index 77ec58ed875fdb9e634aa2d3bc2eac99b67d5558..c47e02fbabfae8711b2e4258a53d958967c47fde 100644 (file)
@@ -4,12 +4,16 @@ from Components.Element import cached
 class RadioText(Converter, object):
        def __init__(self, type):
                Converter.__init__(self, type)
+               self.type = type
 
        @cached
        def getText(self):
                rt = self.source.radiotext
                if rt is None:
-                       return "N/A"
-               return rt
-
+                       return ""
+               text = rt.getRadioText()
+               if self.type == "RadioText-UTF8":
+                       return text.decode("latin-1").encode("utf-8")
+               else:
+                       return text
        text = property(getText)