Don't install *.jpg files with the Plugin metadata to save space.
[enigma2.git] / lib / python / Plugins / SystemPlugins / Videomode / VideoWizard.py
index 095e94c0c2acdd20c6cbf4535671cbabc0fb883b..bceb6bc7e42dd2d4259a3736bf96428bc7a71153 100644 (file)
@@ -7,6 +7,7 @@ from Components.Pixmap import Pixmap, MovingPixmap, MultiPixmap
 from Components.config import config, ConfigBoolean, configfile
 
 from Tools.Directories import resolveFilename, SCOPE_PLUGINS
+from Tools.HardwareInfo import HardwareInfo
 
 config.misc.showtestcard = ConfigBoolean(default = False)
 
@@ -75,11 +76,15 @@ class VideoWizard(WizardLanguage, Rc):
                configfile.save()
        
        def listInputChannels(self):
+               hw_type = HardwareInfo().get_device_name()
                list = []
 
                for port in self.hw.getPortList():
                        if self.hw.isPortUsed(port):
-                               list.append((port,port))
+                               descr = port
+                               if descr == 'DVI' and hw_type == 'dm500hd':
+                                       descr = 'HDMI'
+                               list.append((descr,port))
                list.sort(key = lambda x: x[0])
                print "listInputChannels:", list
                return list
@@ -165,7 +170,7 @@ class VideoWizard(WizardLanguage, Rc):
                        config.misc.showtestcard.value = False
 
        def keyNumberGlobal(self, number):
-               if number in [1,2,3]:
+               if number in (1,2,3):
                        if number == 1:
                                self.hw.saveMode("DVI", "720p", "multi")
                        elif number == 2: