X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/b5ca0a1b4676eea8cf2fd9966634cac73bd46e5b..92456d9542585d58e011fa4f0b501de3ef9c1819:/lib/python/Components/Converter/RadioText.py diff --git a/lib/python/Components/Converter/RadioText.py b/lib/python/Components/Converter/RadioText.py index 77ec58ed..59885c0a 100644 --- a/lib/python/Components/Converter/RadioText.py +++ b/lib/python/Components/Converter/RadioText.py @@ -4,12 +4,14 @@ 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 - + text = "" + if rt: + if self.type == "RadioText": + text = rt.getRadioText() + return text.decode("latin-1").encode("utf-8") text = property(getText)