diff options
| author | Fraxinas <andreas.frisch@multimedia-labs.de> | 2009-05-11 13:08:52 +0200 |
|---|---|---|
| committer | Fraxinas <andreas.frisch@multimedia-labs.de> | 2009-05-11 13:08:52 +0200 |
| commit | 92554c8325411acd3acaec7c15be420f180907c4 (patch) | |
| tree | 3d7859754602518757bdc5e51d17953ce09271c8 /lib/python/Components/Converter/ServicePosition.py | |
| parent | c3f2fa3d78531c2cb7de469d38e44c965102d454 (diff) | |
| download | enigma2-92554c8325411acd3acaec7c15be420f180907c4.tar.gz enigma2-92554c8325411acd3acaec7c15be420f180907c4.zip | |
cyclic refresh of duration (fixes length of streams being reported as 0:00)
Diffstat (limited to 'lib/python/Components/Converter/ServicePosition.py')
| -rw-r--r-- | lib/python/Components/Converter/ServicePosition.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/python/Components/Converter/ServicePosition.py b/lib/python/Components/Converter/ServicePosition.py index b92af40b..56a6db67 100644 --- a/lib/python/Components/Converter/ServicePosition.py +++ b/lib/python/Components/Converter/ServicePosition.py @@ -21,11 +21,6 @@ class ServicePosition(Converter, Poll, object): self.showHours = 'ShowHours' in args self.showNoSeconds = 'ShowNoSeconds' in args - if self.detailed: - self.poll_interval = 100 - else: - self.poll_interval = 500 - if type == "Length": self.type = self.TYPE_LENGTH elif type == "Position": @@ -37,7 +32,14 @@ class ServicePosition(Converter, Poll, object): else: raise ElementError("type must be {Length|Position|Remaining|Gauge} with optional arguments {Negate|Detailed|ShowHours|ShowNoSeconds} for ServicePosition converter") - self.poll_enabled = self.type != self.TYPE_LENGTH + if self.detailed: + self.poll_interval = 100 + elif self.type == self.TYPE_LENGTH: + self.poll_interval = 2000 + else: + self.poll_interval = 500 + + self.poll_enabled = True def getSeek(self): s = self.source.service |
