Add the possibility to tag e.g. MKVs as top/bottom 3D
authorlittlesat <littlesat99@yahoo.com>
Mon, 13 Apr 2015 18:04:45 +0000 (20:04 +0200)
committerlittlesat <littlesat99@yahoo.com>
Mon, 13 Apr 2015 18:05:23 +0000 (20:05 +0200)
lib/python/Plugins/SystemPlugins/OSD3DSetup/plugin.py

index 24afe7c..242a328 100644 (file)
@@ -107,19 +107,19 @@ class auto3D(Screen):
                                if service.toString().startswith("1:"):
                                        info = eServiceCenter.getInstance().info(service)
                                        service = info and info.getInfoString(service, iServiceInformation.sServiceref)
-                                       return service and eDVBDB.getInstance().getFlag(eServiceReference(service)) & FLAG_IS_DEDICATED_3D == FLAG_IS_DEDICATED_3D
+                                       return service and eDVBDB.getInstance().getFlag(eServiceReference(service)) & FLAG_IS_DEDICATED_3D == FLAG_IS_DEDICATED_3D and "sidebyside"
                                else:
-                                       return ".3d." in servicepath.lower()
+                                       return ".3d." in servicepath.lower() and "sidebyside" or ".tab." in servicepath.lower() and "topandbottom"
                        service = self.session.nav.getCurrentService()
                        info = service and service.info()
-                       return info and info.getInfo(iServiceInformation.sIsDedicated3D) == 1
+                       return info and info.getInfo(iServiceInformation.sIsDedicated3D) == 1 and "sidebyside"
 
        def __evStart(self):
                if config.plugins.OSD3DSetup.mode.value == "auto":
                        global isDedicated3D
                        isDedicated3D = self.checkIfDedicated3D()
                        if isDedicated3D:
-                               applySettings("sidebyside")
+                               applySettings(isDedicated3D)
                        else:
                                applySettings()