Ejemplo n.º 1
0
 def __init__(self, handler=None, ID=None):
     super(html, self).__init__(handler, ID)
     self.platformtools = platform(self)
     self.data = {}
     if self.handler:
         self.client_ip = handler.client.getpeername()[0]
         self.send_message({
             "action": "connect",
             "data": {
                 "version":
                 "pelisalacarta %s" % config.get_plugin_version(),
                 "date": config.get_plugin_date()
             }
         })
         t = threading.Thread(target=launcher.start, name=ID)
         t.setDaemon(True)
         t.start()
Ejemplo n.º 2
0
 def __init__(self, handler=None, ID = None):
     super(html, self).__init__(handler, ID)
     self.platformtools = platform(self)
     self.data = {}
     if self.handler:
         self.client_ip = handler.client.getpeername()[0]
         self.send_message({"action": "connect", "data":{"version": "pelisalacarta %s" % config.get_plugin_version(), "date":config.get_plugin_date()}})
         t = threading.Thread(target=launcher.start, name=ID)
         t.setDaemon(True)
         t.start()
Ejemplo n.º 3
0
 def __init__(self, handler=None):
   super(html,self).__init__(handler)
   self.platformtools = platform(self)
   self.data = {}
   
   if self.handler:
     self.client_ip = handler.client.getpeername()[0]
     ID = "%032x" %(random.getrandbits(128))
     self.handler.sendMessage('{"action": "connect", "data":{"version": "pelisalacarta '+config.get_plugin_version()+'", "date":"'+config.get_plugin_date()+'"}, "id": "'+ ID +'"}')
     launcher.start()