X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/93e5471ad948cc4504bb128f0b5fbb0a939fbcbf..29595f9e351b8d7b4f77b0a9885209d45929d2b1:/lib/python/Components/Converter/RadioText.py diff --git a/lib/python/Components/Converter/RadioText.py b/lib/python/Components/Converter/RadioText.py index e4499950..59885c0a 100644 --- a/lib/python/Components/Converter/RadioText.py +++ b/lib/python/Components/Converter/RadioText.py @@ -9,11 +9,9 @@ class RadioText(Converter, object): @cached def getText(self): rt = self.source.radiotext - if rt is None: - return "N/A" - 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)