aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/SystemPlugins/CommonInterfaceAssignment
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Plugins/SystemPlugins/CommonInterfaceAssignment')
-rwxr-xr-xlib/python/Plugins/SystemPlugins/CommonInterfaceAssignment/meta/plugin_commoninterfaceassignment.xml23
-rwxr-xr-xlib/python/Plugins/SystemPlugins/CommonInterfaceAssignment/plugin.py6
2 files changed, 9 insertions, 20 deletions
diff --git a/lib/python/Plugins/SystemPlugins/CommonInterfaceAssignment/meta/plugin_commoninterfaceassignment.xml b/lib/python/Plugins/SystemPlugins/CommonInterfaceAssignment/meta/plugin_commoninterfaceassignment.xml
index 9abc5986..f34f0a3c 100755
--- a/lib/python/Plugins/SystemPlugins/CommonInterfaceAssignment/meta/plugin_commoninterfaceassignment.xml
+++ b/lib/python/Plugins/SystemPlugins/CommonInterfaceAssignment/meta/plugin_commoninterfaceassignment.xml
@@ -4,28 +4,17 @@
<tag type="CI" />
<tag type="System" />
</prerequisites>
- <info language="en">
+ <info>
<author>Dream Multimedia</author>
<name>CommonInterfaceAssignment</name>
<packagename>enigma2-plugin-systemplugins-commoninterfaceassignment</packagename>
- <shortdescription>Assigning providers/services/caids to a dedicated CI module</shortdescription>
- <description>With the CommonInterfaceAssignment extension it is possible to use different CI modules
- in your Dreambox and assign to each of them dedicated providers/services or caids.\n
- So it is then possible to watch a scrambled service while recording another one.
- </description>
- <screenshot src="http://www.dreamboxupdate.com/preview/plugin_ciassignment.jpg" />
- </info>
- <info language="de">
- <author>Dream Multimedia</author>
- <name>CommonInterfaceAssignment</name>
- <packagename>enigma2-plugin-systemplugins-commoninterfaceassignment</packagename>
- <shortdescription>Zuweisen von Providern/Services/CAIDs an ein CI Modul</shortdescription>
- <description>Mit der CommonInterfaceAssignment Erweiterung ist es möglich jedem CI Modul bestimmte Provider/Services/CAIDs zuzuweisen.\n
- So ist es möglich mit einem CI einen Sender aufzunehmen\n
- und mit einem anderen einen Sender zu schauen.
- </description>
+ <shortdescription>Assigning providers/services/caids to a CI module</shortdescription>
+ <description>With the CommonInterfaceAssignment plugin it is possible to use different
+ CI modules in your Dreambox and assign dedicated providers/services or caids to each of them.\n
+ This allows watching a scrambled service while recording another one.</description>
<screenshot src="http://www.dreamboxupdate.com/preview/plugin_ciassignment.jpg" />
</info>
+
<files type="package"> <!-- without version, without .ipk -->
<file type="package" name="enigma2-plugin-systemplugins-commoninterfaceassignment" />
</files>
diff --git a/lib/python/Plugins/SystemPlugins/CommonInterfaceAssignment/plugin.py b/lib/python/Plugins/SystemPlugins/CommonInterfaceAssignment/plugin.py
index 2c0edf53..52296c66 100755
--- a/lib/python/Plugins/SystemPlugins/CommonInterfaceAssignment/plugin.py
+++ b/lib/python/Plugins/SystemPlugins/CommonInterfaceAssignment/plugin.py
@@ -12,7 +12,7 @@ from ServiceReference import ServiceReference
from Plugins.Plugin import PluginDescriptor
from xml.etree.cElementTree import parse as ci_parse
from Tools.XMLTools import elementsWithTag, mergeText, stringToXML
-from enigma import eDVBCI_UI, eDVBCIInterfaces
+from enigma import eDVBCI_UI, eDVBCIInterfaces, eEnv
from os import system, path as os_path
@@ -115,7 +115,7 @@ class CIconfigMenu(Screen):
Screen.__init__(self, session)
self.ci_slot=ci_slot
- self.filename="/etc/enigma2/ci"+str(self.ci_slot)+".xml"
+ self.filename = eEnv.resolve("${sysconfdir}/enigma2/ci") + str(self.ci_slot) + ".xml"
self["key_red"] = StaticText(_("Delete"))
self["key_green"] = StaticText(_("add Service"))
@@ -567,7 +567,7 @@ def activate_all(session):
return Len > 0 and definitions[Len-1].text or default
for ci in range(NUM_CI):
- filename="/etc/enigma2/ci"+str(ci)+".xml"
+ filename = eEnv.resolve("${sysconfdir}/enigma2/ci") + str(ci) + ".xml"
if not os_path.exists(filename):
print "[CI_Activate_Config_CI%d] no config file found" %ci