always utf8 for radiotext
[enigma2.git] / lib / python / Components / Converter / RadioText.py
index c47e02fbabfae8711b2e4258a53d958967c47fde..59885c0a689602ed8d1b0f4aa6c8288421eafa58 100644 (file)
@@ -9,11 +9,9 @@ class RadioText(Converter, object):
        @cached
        def getText(self):
                rt = self.source.radiotext
-               if rt is None:
-                       return ""
-               text = rt.getRadioText()
-               if self.type == "RadioText-UTF8":
-                       return text.decode("latin-1").encode("utf-8")
-               else:
-                       return text
+               text = ""
+               if rt:
+                       if self.type == "RadioText":
+                               text = rt.getRadioText()
+               return text.decode("latin-1").encode("utf-8")
        text = property(getText)