X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/19c32524a2abd9aa03fcb8f84103301e9410f1c0..2fa166a61a60aed8248b74a838a2d077720156e9:/lib/python/Components/Sources/StreamService.py diff --git a/lib/python/Components/Sources/StreamService.py b/lib/python/Components/Sources/StreamService.py index 4f4e78e8..fbd3d255 100644 --- a/lib/python/Components/Sources/StreamService.py +++ b/lib/python/Components/Sources/StreamService.py @@ -1,6 +1,6 @@ from Source import Source from Components.Element import cached -from enigma import eServiceReference, getBestPlayableServiceReference +from enigma import eServiceReference class StreamService(Source): def __init__(self, navcore): @@ -29,11 +29,10 @@ class StreamService(Source): self.changed((self.CHANGED_ALL, )) def execBegin(self): + if self.ref is None: + print "StreamService has no service ref set." + return print "StreamService execBegin", self.ref.toString() - if self.ref.flags & eServiceReference.isGroup: - playref = getBestPlayableServiceReference(self.ref, eServiceReference()) - if playref: - self.ref = playref self.__service = self.navcore.recordService(self.ref) self.navcore.record_event.append(self.recordEvent) if self.__service is not None: