Enigma2 plugin to to play various online streams (mostly Latvian).

plugin.py 814B

123456789101112131415161718192021
  1. from Plugins.Plugin import PluginDescriptor
  2. import PlayStream
  3. from . import _
  4. def main(session, **kwargs):
  5. try:
  6. reload(PlayStream)
  7. session.open(PlayStream.MainScreen)
  8. except Exception as e:
  9. print "Error loading PlayStream - "+ e.message
  10. def menu(menuid, **kwargs):
  11. if menuid == "mainmenu":
  12. return [("Play Stream", main, "playstream", 57)]
  13. return []
  14. def Plugins(**kwargs):
  15. return [
  16. PluginDescriptor(name = "Play Stream",description = _("Play online streams from various sources"),where = [PluginDescriptor.WHERE_PLUGINMENU,PluginDescriptor.WHERE_EXTENSIONSMENU], icon = "plugin.png", fnc = main),
  17. PluginDescriptor(name="TV Play", description=_("Play online streams from various sources"), where = [PluginDescriptor.WHERE_MENU], fnc=menu)
  18. ]