diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-10-11 14:14:59 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-10-11 14:14:59 +0000 |
| commit | 88078e7ac2ee289a0dfc321d71c7494657c4457c (patch) | |
| tree | 4a9fe67a9cc4e2c79db8f682d0adddea7eac4171 /lib/python/Components/Converter/RadioText.py | |
| parent | 630201d0c8e0753ff466761f0c21e6ba47ee845d (diff) | |
| download | enigma2-88078e7ac2ee289a0dfc321d71c7494657c4457c.tar.gz enigma2-88078e7ac2ee289a0dfc321d71c7494657c4457c.zip | |
always utf8 for radiotext
Diffstat (limited to 'lib/python/Components/Converter/RadioText.py')
| -rw-r--r-- | lib/python/Components/Converter/RadioText.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/python/Components/Converter/RadioText.py b/lib/python/Components/Converter/RadioText.py index c47e02fb..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 "" - 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) |
