X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/93e5471ad948cc4504bb128f0b5fbb0a939fbcbf..cfb7ccb1ee949337ebbbde784828ed46943af6eb:/lib/python/Components/Sources/RadioText.py?ds=inline diff --git a/lib/python/Components/Sources/RadioText.py b/lib/python/Components/Sources/RadioText.py index de10ad81..e69de29b 100644 --- a/lib/python/Components/Sources/RadioText.py +++ b/lib/python/Components/Sources/RadioText.py @@ -1,27 +0,0 @@ -from Components.PerServiceDisplay import PerServiceBase -from Components.Element import cached -from enigma import iPlayableService -from Source import Source - -class RadioText(PerServiceBase, Source, object): - def __init__(self, navcore): - Source.__init__(self) - PerServiceBase.__init__(self, navcore, - { - iPlayableService.evStart: self.gotEvent, - iPlayableService.evUpdatedRadioText: self.gotEvent, - iPlayableService.evEnd: self.gotEvent - }, with_event=True) - - @cached - def getText(self): - service = self.navcore.getCurrentService() - return service and service.radioText() - - radiotext = property(getText) - - def gotEvent(self, what): - if what in [iPlayableService.evStart, iPlayableService.evEnd]: - self.changed((self.CHANGED_CLEAR,)) - else: - self.changed((self.CHANGED_ALL,))