1234567891011121314151617181920212223 |
- from Plugins.Plugin import PluginDescriptor
- import PlayStream
- from . import _
- import traceback
-
- def main(session, **kwargs):
- try:
- reload(PlayStream)
- session.open(PlayStream.MainScreen)
- except Exception as e:
- print "Error loading PlayStream - "+ e.message
- traceback.print_exc()
-
- def menu(menuid, **kwargs):
- if menuid == "mainmenu":
- return [("Play Stream", main, "playstream", 57)]
- return []
-
- def Plugins(**kwargs):
- return [
- PluginDescriptor(name = "Play Stream",description = _("Play online streams from various sources"),where = [PluginDescriptor.WHERE_PLUGINMENU,PluginDescriptor.WHERE_EXTENSIONSMENU], icon = "plugin.png", fnc = main),
- PluginDescriptor(name="Play Stream", description=_("Play online streams from various sources"), where = [PluginDescriptor.WHERE_MENU], fnc=menu)
- ]
|