Skip to content

Commit

Permalink
Add EMC to Hotkey
Browse files Browse the repository at this point in the history
  • Loading branch information
arn354 committed Jan 8, 2015
1 parent 63f0e8e commit eec62de
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/python/Screens/ButtonSetup.py
Expand Up @@ -183,6 +183,8 @@ def getButtonSetupFunctions():
for x in [x for x in os.listdir("/usr/script") if x.endswith(".sh")]:
x = x[:-3]
ButtonSetupFunctions.append((_("Shellscript") + " " + x, "Shellscript/" + x, "Shellscripts"))
if os.path.isfile("/usr/lib/enigma2/python/Plugins/Extensions/EnhancedMovieCenter/plugin.pyo"):
ButtonSetupFunctions.append((_("EnhancedMovieCenter"), "EMC/", "Plugins"))
return ButtonSetupFunctions

class ButtonSetup(Screen):
Expand Down Expand Up @@ -523,4 +525,11 @@ def execButtonSetup(self, selected):
if os.path.isfile(command) and os.path.isdir('/usr/lib/enigma2/python/Plugins/Extensions/PPanel'):
from Plugins.Extensions.PPanel.ppanel import Execute
self.session.open(Execute, selected[1] + " shellscript", None, command)
elif selected[0] == "EMC":
try:
from Plugins.Extensions.EnhancedMovieCenter.plugin import showMoviesNew
from Screens.InfoBar import InfoBar
open(showMoviesNew(InfoBar.instance))
except Exception as e:
print('[EMCPlayer] showMovies exception:\n' + str(e))

0 comments on commit eec62de

Please sign in to comment.