aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/Converter/RadioText.py
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-10-10 19:54:15 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-10-10 19:54:15 +0000
commitb5ca0a1b4676eea8cf2fd9966634cac73bd46e5b (patch)
tree2d00aed56854f146d065b812f209732fbf97a4bf /lib/python/Components/Converter/RadioText.py
parent870022b905170f39bc9d26b38c5288ce45e69103 (diff)
downloadenigma2-b5ca0a1b4676eea8cf2fd9966634cac73bd46e5b.tar.gz
enigma2-b5ca0a1b4676eea8cf2fd9966634cac73bd46e5b.zip
show radio (rds) text when available... feel free to make it nicer
Diffstat (limited to 'lib/python/Components/Converter/RadioText.py')
-rw-r--r--lib/python/Components/Converter/RadioText.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/python/Components/Converter/RadioText.py b/lib/python/Components/Converter/RadioText.py
new file mode 100644
index 00000000..77ec58ed
--- /dev/null
+++ b/lib/python/Components/Converter/RadioText.py
@@ -0,0 +1,15 @@
+from Components.Converter.Converter import Converter
+from Components.Element import cached
+
+class RadioText(Converter, object):
+ def __init__(self, type):
+ Converter.__init__(self, type)
+
+ @cached
+ def getText(self):
+ rt = self.source.radiotext
+ if rt is None:
+ return "N/A"
+ return rt
+
+ text = property(getText)