From 7ccc977331ed74ca791af31c05169d4a97d33bdc Mon Sep 17 00:00:00 2001 From: Frank Glaser Date: Sun, 5 Mar 2017 17:59:05 +0100 Subject: [PATCH] SATIPClient: Fixed handling of tuner from DVBViewer Recording Service The Recording Server returns for e.g. "Sat>IPTuner~DVBViewer Media Server (Hostname) (IP) 2x DVBS2, 0x DVBC, 0x DVBT, 0x DVBT2)" In this case the mapped type was always DVB-T, the default tuner was also added as DVB-T --- satipclient/src/SatIPTunerSetup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/satipclient/src/SatIPTunerSetup.py b/satipclient/src/SatIPTunerSetup.py index 1cc4ff1d..01dbbdba 100644 --- a/satipclient/src/SatIPTunerSetup.py +++ b/satipclient/src/SatIPTunerSetup.py @@ -117,7 +117,7 @@ class SatIPTunerSetup(Screen): choices.append((type, tuner)) if choices: if len(choices) == 1: - self._addTuner(tuner.host, mapped_type) + self._onModulationTypeSelected(choices[0]) return self.session.openWithCallback( self._onModulationTypeSelected, @@ -132,8 +132,8 @@ class SatIPTunerSetup(Screen): def _onModulationTypeSelected(self, choice): if choice: type, tuner = choice - type = TunerEntry.MAP_FROM_DLNA.get(type) - self._addTuner(tuner.host, type) + mapped_type = TunerEntry.MAP_FROM_DLNA.get(type) + self._addTuner(tuner.host, mapped_type) def _addTuner(self, host, type): self._changed = True -- 2.20.1