from Tools.Directories import *
from Screens.Menu import menuupdater
-#import Plugins
class PluginComponent:
def __init__(self):
def getPluginList(self):
list = []
- dir = os.listdir("/usr/lib/enigma2/python/Plugins/")
+ dir = os.listdir(resolveFilename(SCOPE_PLUGINS))
self.menuDelete()
self.menuEntries = []
- for x in dir:
- if x[-3:] == ".py" and x[:-3] != "__init__":
- print "trying to import " + self.prefix + x[:-3]
- exec "import " + self.prefix + x[:-3]
- picturepath = eval(self.prefix + x[:-3]).getPicturePath()
- pluginname = eval(self.prefix + x[:-3]).getPluginName()
- try:
- for menuEntry in eval(self.prefix + x[:-3]).getMenuRegistrationList():
- self.menuEntries.append([menuEntry, self.prefix + x[:-3]])
- except:
- pass
- list.append((picturepath, pluginname , x[:-3]))
+ for x in dir:
+ path = resolveFilename(SCOPE_PLUGINS, x) + "/"
+ if os.path.exists(path):
+ if fileExists(path + "plugin.py"):
+ pluginmodule = self.prefix + x + ".plugin"
+ print "trying to import " + pluginmodule
+ exec "import " + pluginmodule
+ plugin = eval(pluginmodule)
+ picturepath = plugin.getPicturePath()
+ pluginname = plugin.getPluginName()
+ try:
+ for menuEntry in plugin.getMenuRegistrationList():
+ self.menuEntries.append([menuEntry, pluginmodule])
+ except:
+ pass
+
+ list.append((picturepath, pluginname , x))
self.menuUpdate()
return list
def runPlugin(self, plugin, session):
try:
- exec "import " + self.prefix + plugin[2]
- eval(self.prefix + plugin[2]).main(session)
+ exec "import " + self.prefix + plugin[2] + ".plugin"
+ eval(self.prefix + plugin[2] + ".plugin").main(session)
except:
print "exec of plugin failed!"
msgstr ""
"Project-Id-Version: tuxbox-enigma 0.0.1\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2006-01-06 23:18+0100\n"
+"POT-Creation-Date: 2006-01-10 16:15+0100\n"
"PO-Revision-Date: 2005-12-14 03:29+0100\n"
"Last-Translator: Stefan Pluecken <stefan.pluecken@multimedia-labs.de>\n"
"Language-Team: none\n"
msgid "%d min"
msgstr ""
-#: ../lib/python/Screens/TimerEntry.py:89
-#: ../lib/python/Screens/TimerEntry.py:92
+#: ../lib/python/Screens/TimerEntry.py:91
+#: ../lib/python/Screens/TimerEntry.py:94
msgid "%d.%B %Y"
msgstr ""
msgid "A"
msgstr ""
-#: ../RecordTimer.py:90
+#: ../RecordTimer.py:91
msgid ""
"A timer failed to record!\n"
"Disable TV and try again?\n"
msgid "Cable provider"
msgstr "Kabelanbieter"
-#: ../lib/python/Screens/Setup.py:110 ../lib/python/Screens/TimerEntry.py:19
+#: ../lib/python/Screens/Setup.py:110 ../lib/python/Screens/TimerEntry.py:21
msgid "Cancel"
msgstr "Abbruch"
msgid "Capacity: "
msgstr "Kapazität: "
-#: ../lib/python/Screens/TimerEntry.py:173 ../data/
+#: ../lib/python/Screens/TimerEntry.py:175 ../data/
msgid "Channel"
msgstr "Kanal"
msgid "Delete failed!"
msgstr "Löschen fehlgeschlagen."
-#: ../lib/python/Screens/TimerEntry.py:134
+#: ../lib/python/Screens/TimerEntry.py:136
msgid "Description"
msgstr "Beschreibung"
"Die aktuelle Direktaufnahme\n"
"abbrechen?"
-#: ../lib/python/Plugins/update.py:33
+#: ../lib/python/Plugins/update/update.py:33
msgid ""
"Do you want to update your Dreambox?\n"
"After pressing OK, please wait!"
msgid "Enable"
msgstr "Ein"
-#: ../lib/python/Screens/TimerEntry.py:168
+#: ../lib/python/Screens/TimerEntry.py:170
msgid "End"
msgstr "Ende"
-#: ../lib/python/Screens/TimerEntry.py:171
+#: ../lib/python/Screens/TimerEntry.py:173
msgid "EndTime"
msgstr "Endzeit"
#: ../lib/python/Screens/ScanSetup.py:87
#: ../lib/python/Screens/ScanSetup.py:115
#: ../lib/python/Screens/ScanSetup.py:125
-#: ../lib/python/Screens/TimerEntry.py:141
+#: ../lib/python/Screens/TimerEntry.py:143
msgid "Frequency"
msgstr "Frequenz"
-#: ../lib/python/Screens/TimerEntry.py:95
-#: ../lib/python/Screens/TimerEntry.py:155
+#: ../lib/python/Screens/TimerEntry.py:97
+#: ../lib/python/Screens/TimerEntry.py:157
msgid "Friday"
msgstr "Freitag"
msgid "Modulation"
msgstr ""
-#: ../lib/python/Screens/TimerEntry.py:87
+#: ../lib/python/Screens/TimerEntry.py:89
msgid "Mon-Fri"
msgstr "Montag bis Freitag"
-#: ../lib/python/Screens/TimerEntry.py:95
-#: ../lib/python/Screens/TimerEntry.py:151
+#: ../lib/python/Screens/TimerEntry.py:97
+#: ../lib/python/Screens/TimerEntry.py:153
msgid "Monday"
msgstr "Montag"
msgid "N/A"
msgstr "Nicht verfügbar"
-#: ../lib/python/Screens/TimerEntry.py:133
+#: ../lib/python/Screens/TimerEntry.py:135
msgid "Name"
msgstr ""
msgid "Nothing connected"
msgstr "Nichts angeschlossen"
-#: ../lib/python/Screens/Setup.py:109 ../lib/python/Screens/TimerEntry.py:18
+#: ../lib/python/Screens/Setup.py:109 ../lib/python/Screens/TimerEntry.py:20
msgid "OK"
msgstr ""
msgid "Play recorded movies..."
msgstr "Aufgenommene Filme abspielen..."
-#: ../lib/python/Plugins/update.py:19
+#: ../lib/python/Plugins/update/update.py:19
msgid "Please press OK!"
msgstr "Bitte OK drücken!"
msgid "Satellites"
msgstr "Satelliten"
-#: ../lib/python/Screens/TimerEntry.py:95
-#: ../lib/python/Screens/TimerEntry.py:156
+#: ../lib/python/Screens/TimerEntry.py:97
+#: ../lib/python/Screens/TimerEntry.py:158
msgid "Saturday"
msgstr "Samstag"
-#: ../lib/python/Screens/TimerEntry.py:211
+#: ../lib/python/Screens/TimerEntry.py:213
msgid "Select channel to record from"
msgstr "Kanal auswahlen, von dem aufgenommen werden soll"
msgid "South"
msgstr "Süd"
-#: ../lib/python/Screens/TimerEntry.py:163
+#: ../lib/python/Screens/TimerEntry.py:165
msgid "Start"
msgstr ""
msgid "Start recording?"
msgstr "Aufnahme beginnen?"
-#: ../lib/python/Screens/TimerEntry.py:166
+#: ../lib/python/Screens/TimerEntry.py:168
msgid "StartTime"
msgstr "Startzeit"
msgid "Subservices"
msgstr "Unterkanäle"
-#: ../lib/python/Screens/TimerEntry.py:95
-#: ../lib/python/Screens/TimerEntry.py:157
+#: ../lib/python/Screens/TimerEntry.py:97
+#: ../lib/python/Screens/TimerEntry.py:159
msgid "Sunday"
msgstr "Sonntag"
msgid "Threshold"
msgstr ""
-#: ../lib/python/Screens/TimerEntry.py:95
-#: ../lib/python/Screens/TimerEntry.py:154
+#: ../lib/python/Screens/TimerEntry.py:97
+#: ../lib/python/Screens/TimerEntry.py:156
msgid "Thursday"
msgstr "Donnerstag"
-#: ../lib/python/Screens/TimerEntry.py:135
+#: ../lib/python/Screens/TimerEntry.py:137
msgid "Timer Type"
msgstr "Timer-Art"
msgid "Transmission mode"
msgstr "Übertragungstyp"
-#: ../lib/python/Screens/TimerEntry.py:95
-#: ../lib/python/Screens/TimerEntry.py:152
+#: ../lib/python/Screens/TimerEntry.py:97
+#: ../lib/python/Screens/TimerEntry.py:154
msgid "Tuesday"
msgstr "Dienstag"
msgid "Universal LNB"
msgstr ""
-#: ../lib/python/Plugins/update.py:42
+#: ../lib/python/Plugins/update/update.py:42
msgid "Updating finished. Here is the result:"
msgstr "Aktualisierung beendet. Hier das Ergebnis:"
-#: ../lib/python/Plugins/update.py:48
+#: ../lib/python/Plugins/update/update.py:48
msgid "Updating... Please wait... This can take some minutes..."
msgstr ""
"Update wird durchgeführt. Bitte warten. Der Vorgang kann einige Minuten "
msgid "W"
msgstr ""
-#: ../lib/python/Screens/TimerEntry.py:95
-#: ../lib/python/Screens/TimerEntry.py:153
+#: ../lib/python/Screens/TimerEntry.py:97
+#: ../lib/python/Screens/TimerEntry.py:155
msgid "Wednesday"
msgstr "Mittwoch"
-#: ../lib/python/Screens/TimerEntry.py:148
+#: ../lib/python/Screens/TimerEntry.py:150
msgid "Weekday"
msgstr "Wochentag"
msgid "circular right"
msgstr ""
-#: ../lib/python/Screens/TimerEntry.py:87
+#: ../lib/python/Screens/TimerEntry.py:89
msgid "daily"
msgstr "täglich"
msgstr "nächster Kanal"
#: ../lib/python/Screens/ScanSetup.py:197
-#: ../lib/python/Screens/TimerEntry.py:99
+#: ../lib/python/Screens/TimerEntry.py:101
#: ../lib/python/Components/Network.py:146
#: ../lib/python/Components/RecordingConfig.py:7
msgid "no"
msgid "on"
msgstr "an"
-#: ../lib/python/Screens/TimerEntry.py:83
+#: ../lib/python/Screens/TimerEntry.py:85
msgid "once"
msgstr "einmalig"
msgid "remove service"
msgstr "Kanal löschen"
-#: ../lib/python/Screens/TimerEntry.py:83
+#: ../lib/python/Screens/TimerEntry.py:85
msgid "repeated"
msgstr "wiederholend"
msgid "unknown service"
msgstr "unbekannter Service"
-#: ../lib/python/Screens/TimerEntry.py:87
+#: ../lib/python/Screens/TimerEntry.py:89
msgid "user defined"
msgstr "benutzerdefiniert"
msgid "vertical"
msgstr "vertikal"
-#: ../lib/python/Screens/TimerEntry.py:87
+#: ../lib/python/Screens/TimerEntry.py:89
msgid "weekly"
msgstr "wöchentlich"
#: ../lib/python/Screens/ScanSetup.py:197
-#: ../lib/python/Screens/TimerEntry.py:99
+#: ../lib/python/Screens/TimerEntry.py:101
#: ../lib/python/Components/Network.py:146
#: ../lib/python/Components/RecordingConfig.py:7
msgid "yes"