Esempio n. 1
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()
Esempio n. 2
0
# (at your option) any later version.
#
# pelisalacarta 4 is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with pelisalacarta 4.  If not, see <http://www.gnu.org/licenses/>.
# ------------------------------------------------------------
# XBMC entry point
#------------------------------------------------------------

import os
import sys

from core import config
from core import logger

logger.info("pelisalacarta.default init...")

librerias = xbmc.translatePath( os.path.join( config.get_runtime_path(), 'lib' ) )
sys.path.append (librerias)

from platformcode import launcher

if sys.argv[2] == "":
    launcher.start()
    launcher.run()
else:
  launcher.run()